We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1cf02 commit c1ef7edCopy full SHA for c1ef7ed
src/node/util.ts
@@ -416,8 +416,8 @@ export const open = async (address: URL | string): Promise<void> => {
416
if (url.hostname === "0.0.0.0") {
417
url.hostname = "localhost"
418
}
419
- const args = [] as string[]
420
- const options = {} as cp.SpawnOptions
+ const args: string[] = []
+ const options: cp.SpawnOptions = {}
421
const platform = (await isWsl(process.platform, os.release(), "/proc/version")) ? "wsl" : process.platform
422
let command = platform === "darwin" ? "open" : "xdg-open"
423
if (platform === "win32" || platform === "wsl") {
0 commit comments