Skip to content

Commit

Permalink
chore: reduce one if judgment (#14331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored Sep 8, 2023
1 parent b361ffa commit d0eb803
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 d0eb803

Please sign in to comment.