Skip to content

Commit

Permalink
fix(write): avoid another cb never called situation
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 17, 2019
1 parent 90f40f0 commit 5156561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/content/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function pipeToTmp (inputStream, cache, tmpTarget, opts, errCheck) {
errCheck()
return pipe(inputStream, hashStream, outStream).then(() => {
return {integrity, size}
}, err => {
}).catch(err => {
return rimraf(tmpTarget).then(() => { throw err })
})
})
Expand Down

0 comments on commit 5156561

Please # to comment.