Remove redundant serverAddress check

We now guarantee there is an address.
This commit is contained in:
Asher 2020-10-27 17:35:42 -05:00
parent 305348f0ac
commit cde94d5ed4
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ const main = async (args: DefaultedArgs): Promise<void> => {
} }
} }
if (serverAddress && !args.socket && args.open) { if (!args.socket && args.open) {
// The web socket doesn't seem to work if browsing with 0.0.0.0. // The web socket doesn't seem to work if browsing with 0.0.0.0.
const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost") const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost")
await open(openAddress).catch((error: Error) => { await open(openAddress).catch((error: Error) => {