Skip to content

Commit 6d279d3

Browse files
authored
chore: update code style (#1451)
1 parent aa5463c commit 6d279d3

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/vite/src/node/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ cli
6464
.option('-m, --mode <mode>', `[string] set env mode`)
6565
.option(
6666
'--force',
67-
`[boolean] force the optimizer to ignore the cache and re-bundle`
67+
`[boolean] force the optimizer to ignore the cache and re-bundle`
6868
)
6969
.action(async (root: string, options: ServerOptions & GlobalCLIOptions) => {
7070
// output structure is preserved even after bundling so require()
@@ -111,7 +111,7 @@ cli
111111
`or specify minifier to use (default: terser)`
112112
)
113113
.option('--manifest', `[boolean] emit build manifest json`)
114-
.option('-m, --mode <mode>', `[string] set env mode`)
114+
.option('-m, --mode <mode>', `[string] set env mode`)
115115
.action(async (root: string, options: BuildOptions & GlobalCLIOptions) => {
116116
const { build } = await import('./build')
117117
try {
@@ -134,7 +134,7 @@ cli
134134
.command('optimize [root]')
135135
.option(
136136
'--force',
137-
`[boolean] force the optimizer to ignore the cache and re-bundle`
137+
`[boolean] force the optimizer to ignore the cache and re-bundle`
138138
)
139139
.action(
140140
async (root: string, options: { force?: boolean } & GlobalCLIOptions) => {

packages/vite/src/node/plugins/html.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ export async function applyHtmlTransforms(
407407
const res = await hook(html, ctx)
408408
if (!res) {
409409
continue
410-
} else if (typeof res === 'string') {
410+
}
411+
if (typeof res === 'string') {
411412
html = res
412413
} else {
413414
let tags

0 commit comments

Comments
 (0)