Skip to content

Commit cde94d5

Browse files
committed
Remove redundant serverAddress check
We now guarantee there is an address.
1 parent 305348f commit cde94d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const main = async (args: DefaultedArgs): Promise<void> => {
159159
}
160160
}
161161

162-
if (serverAddress && !args.socket && args.open) {
162+
if (!args.socket && args.open) {
163163
// The web socket doesn't seem to work if browsing with 0.0.0.0.
164164
const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost")
165165
await open(openAddress).catch((error: Error) => {

0 commit comments

Comments
 (0)