Skip to content

Commit

Permalink
Fixes local fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Sep 28, 2019
1 parent d15849e commit 7f606ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetchers/tarball-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ export default class TarballFetcher extends BaseFetcher {
);

stream.pipe(hashValidateStream);
stream.pipe(integrityValidateStream);
hashValidateStream.pipe(integrityValidateStream);

stream.pipe(extractorStream).on('error', err => {
integrityValidateStream.pipe(extractorStream).on('error', err => {
reject(new MessageError(this.config.reporter.lang('fetchErrorCorrupt', err.message, tarballPath)));
});
});
Expand Down

0 comments on commit 7f606ec

Please sign in to comment.