Skip to content

Commit

Permalink
fix: skip error return on then callback
Browse files Browse the repository at this point in the history
Otherwise any succesful return would make the program think it failed
  • Loading branch information
imatlopez committed Jan 24, 2021
1 parent 95a7305 commit cd6d856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cd6d856

Please sign in to comment.