diff --git a/src/node/util.ts b/src/node/util.ts index 11128e54..7c460958 100644 --- a/src/node/util.ts +++ b/src/node/util.ts @@ -187,7 +187,7 @@ export const open = async (url: string): Promise => { url = url.replace(/&/g, "^&") } const proc = cp.spawn(command, [...args, url], options) - await new Promise((resolve, reject) => { + await new Promise((resolve, reject) => { proc.on("error", reject) proc.on("close", (code) => { return code !== 0 ? reject(new Error(`Failed to open with code ${code}`)) : resolve()