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

Commit

Permalink
fix(tarball): Remove promise handler error (#148)
Browse files Browse the repository at this point in the history
Fixes: #145
  • Loading branch information
redonkulus authored and zkat committed Apr 24, 2018
1 parent 4515f99 commit 47da3f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fetchers/registry/tarball.js
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ function tarball (spec, opts) {
)
fetchStream.on('error', err => stream.emit('error', err))
fetchStream.pipe(stream)
return null
}).catch(err => stream.emit('error', err))
return stream
}
@@ -72,6 +73,7 @@ function fromManifest (manifest, spec, opts) {
}
res.body.on('error', err => stream.emit('error', err))
res.body.pipe(stream)
return null
})
.catch(err => stream.emit('error', err))
return stream

0 comments on commit 47da3f6

Please sign in to comment.