Skip to content

Commit 5156561

Browse files
committed
fix(write): avoid another cb never called situation
1 parent 90f40f0 commit 5156561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content/write.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function pipeToTmp (inputStream, cache, tmpTarget, opts, errCheck) {
112112
errCheck()
113113
return pipe(inputStream, hashStream, outStream).then(() => {
114114
return {integrity, size}
115-
}, err => {
115+
}).catch(err => {
116116
return rimraf(tmpTarget).then(() => { throw err })
117117
})
118118
})

0 commit comments

Comments
 (0)