Skip to content

Commit

Permalink
refactor: remove unnecessary condition (#8742)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN committed Jun 23, 2022
1 parent ce484d7 commit 2ae269e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -718,7 +718,7 @@ async function restartServer(server: ViteDevServer) {
// prevent new server `restart` function from calling
// @ts-ignore
newServer[key] = server[key]
} else if (key !== 'app') {
} else {
// @ts-ignore
server[key] = newServer[key]
}
Expand Down

0 comments on commit 2ae269e

Please sign in to comment.