summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/open-url.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/utils/open-url.js')
-rw-r--r--deps/npm/lib/utils/open-url.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/utils/open-url.js b/deps/npm/lib/utils/open-url.js
index 379640773f..f882d0c9d3 100644
--- a/deps/npm/lib/utils/open-url.js
+++ b/deps/npm/lib/utils/open-url.js
@@ -31,7 +31,7 @@ const open = async (npm, url, errMsg, isFile) => {
if (!/^https?:$/.test(new URL(url).protocol)) {
throw new Error()
}
- } catch (_) {
+ } catch {
throw new Error('Invalid URL: ' + url)
}
}