Skip to content

Commit

Permalink
fix: remove Number
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshuangyang committed Dec 12, 2024
1 parent fe99c0a commit 78e69fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export async function createServer(opts: IOpts): Promise<any> {
console.log(`[SOCKET_SERVER] hmr port changed from ${port} to ${basePort}`)
return undefined;
}
return Number(startPort) === basePort ? undefined : (Number(startPort) || undefined);
return startPort === basePort ? undefined : startPort;
};

ws = createWebSocketServer(server, await parseSocketServerAddress());
Expand Down

0 comments on commit 78e69fe

Please sign in to comment.