Skip to content

Commit

Permalink
chore: small code style improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Dec 14, 2024
1 parent e11c5d9 commit 31dee7d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app-vite/templates/entry/server-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default ssrContext => {
Promise.resolve()
)
.then(() => {
if (hasRedirected === true) { return }
if (hasRedirected === true) return

<% if (metaConf.hasStore && ssr.manualStoreSsrContextInjection !== true) { %>ssrContext.state = unref(store.state)<% } %>

Expand Down
2 changes: 1 addition & 1 deletion app-webpack/lib/modes/electron/electron-devserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports.QuasarModeDevserver = class QuasarModeDevserver extends AppDevser
const compiler = webpack(webpackConf)

compiler.hooks.done.tap('done-compiling', stats => {
if (started === true) { return }
if (started === true) return

// start dev server if there are no errors
if (stats.hasErrors() === true) return
Expand Down
2 changes: 1 addition & 1 deletion app-webpack/lib/modes/pwa/pwa-devserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports.QuasarModeDevserver = class QuasarModeDevserver extends AppDevser
const compiler = webpack(webpackConf)

compiler.hooks.done.tap('done-compiling', stats => {
if (started === true) { return }
if (started === true) return

// start dev server if there are no errors
if (stats.hasErrors() === true) return
Expand Down
2 changes: 1 addition & 1 deletion app-webpack/lib/modes/spa/spa-devserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports.QuasarModeDevserver = class QuasarModeDevserver extends AppDevser
const compiler = webpack(webpackConf)

compiler.hooks.done.tap('done-compiling', stats => {
if (started === true) { return }
if (started === true) return

// start dev server if there are no errors
if (stats.hasErrors() === true) return
Expand Down
2 changes: 1 addition & 1 deletion app-webpack/lib/plugins/webpack.progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ module.exports.WebpackProgressPlugin = class WebpackProgressPlugin extends Progr
updateBars (percent, msg, details) {
// it may still be called even after compilation was closed
// due to Webpack's delayed call of handler
if (this.state === void 0) { return }
if (this.state === void 0) return

const progress = Math.floor(percent * 100)
const running = progress < 100
Expand Down
2 changes: 1 addition & 1 deletion app-webpack/templates/entry/server-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default ssrContext => {
Promise.resolve()
)
.then(() => {
if (hasRedirected === true) { return }
if (hasRedirected === true) return

<% if (metaConf.hasStore && ssr.manualStoreSsrContextInjection !== true) { %>ssrContext.state = unref(store.state)<% } %>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/layouts/doc-layout/DocSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function fetchQuery (val, onResult, onError) {
clearTimeout(fetchTimer)
fetchTimer = setTimeout(() => {
if (localRequestId !== requestId) { return }
if (localRequestId !== requestId) return
const xhr = new XMLHttpRequest()
const data = JSON.stringify({
Expand Down

0 comments on commit 31dee7d

Please sign in to comment.