From cd6d856ce2a16c935a8e180c70370bbd48bab2ba Mon Sep 17 00:00:00 2001 From: Matias Lopez Date: Sun, 24 Jan 2021 09:18:45 -0500 Subject: [PATCH] fix: skip error return on then callback Otherwise any succesful return would make the program think it failed --- lib/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install.js b/lib/install.js index 4140d660a4..99f6d8592a 100644 --- a/lib/install.js +++ b/lib/install.js @@ -366,7 +366,7 @@ async function readCAFile (filename) { } module.exports = function (gyp, argv, callback) { - install(fs, gyp, argv).then(callback, callback) + install(fs, gyp, argv).then(callback.bind(undefined, null), callback) } module.exports.test = { download,