Skip to content

Commit cd6d856

Browse files
committed
fix: skip error return on then callback
Otherwise any succesful return would make the program think it failed
1 parent 95a7305 commit cd6d856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ async function readCAFile (filename) {
366366
}
367367

368368
module.exports = function (gyp, argv, callback) {
369-
install(fs, gyp, argv).then(callback, callback)
369+
install(fs, gyp, argv).then(callback.bind(undefined, null), callback)
370370
}
371371
module.exports.test = {
372372
download,

0 commit comments

Comments
 (0)