From f13ba9401b77302e1dc32e78657cf9cf22650805 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 20 Jan 2021 11:30:09 -0700 Subject: [PATCH] fix(TS error): add void to promise in util --- src/node/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()