Skip to content

Commit

Permalink
chore: reduce one if judgment (vitejs#14331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored and Gaubee committed Sep 13, 2023
1 parent 40e2078 commit 1a435c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,7 @@ export async function resolveConfig(
} instead`,
),
)
}
if (middlewareMode === 'html') {
} else if (middlewareMode === 'html') {
logger.warn(
colors.yellow(
`Setting server.middlewareMode to 'html' is deprecated, set server.middlewareMode to \`true\` instead`,
Expand Down

0 comments on commit 1a435c4

Please sign in to comment.