Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
fix(extract): always return a bluebird promise
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 6, 2017
1 parent bb56175 commit 06ca91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function extract (spec, dest, opts) {
})
} else {
opts.log.silly('pacote', 'no tarball hash provided for', spec.name, '- extracting by manifest')
return retry((tryAgain, attemptNum) => {
return BB.resolve(retry((tryAgain, attemptNum) => {
return extractByManifest(
startTime, spec, dest, opts
).catch(err => {
Expand All @@ -54,7 +54,7 @@ function extract (spec, dest, opts) {
throw err
}
})
}, {retries: 1})
}, {retries: 1}))
}
}

Expand Down

0 comments on commit 06ca91d

Please sign in to comment.