Skip to content

Commit

Permalink
test: fix lint error
Browse files Browse the repository at this point in the history
Not sure why this wasn't raised when I was running the release,
the tests definitely passed.  Fixed now, at any rate.
  • Loading branch information
isaacs committed Dec 11, 2019
1 parent fd29398 commit 797a597
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/tap/bin-overwriting.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const path = require('path')
const readBinCb = process.platform === 'win32' ? readCmdShim : readlink
const readBin = bin => new Promise((resolve, reject) => {
readBinCb(bin, (er, target) => {
if (er)
if (er) {
reject(er)
else
} else {
resolve(path.resolve(pkg + '/global/bin', target))
}
})
})

Expand Down

0 comments on commit 797a597

Please sign in to comment.