Skip to content

Commit

Permalink
Update sources/corepackUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Maël Nison <[email protected]>
  • Loading branch information
zhyupe and arcanis authored Mar 26, 2024
1 parent 663d7ac commit 926d590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/corepackUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function download(installTarget: string, url: string, algo: string, binPat
}
stream.pipe(sendTo);

const streamHash = stream.pipe(createHash(algo));
const streamHash = !binPath ? stream.pipe(createHash(algo)) : null;
await once(sendTo, `finish`);

let hash: string;
Expand Down

0 comments on commit 926d590

Please sign in to comment.