diff --git a/lib/fetchers/registry/tarball.js b/lib/fetchers/registry/tarball.js index 89158d3..7239981 100644 --- a/lib/fetchers/registry/tarball.js +++ b/lib/fetchers/registry/tarball.js @@ -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