Skip to content

Commit

Permalink
clean up stream closures
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jan 22, 2024
1 parent 13d4bcc commit 21f24cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ async function buildArchPackage(os, cpu, version, pre) {
const f = await open(filename, "w");

await res.body.pipeTo(Writable.toWeb(f.createWriteStream()));
f.close();

const running = await execFile("unzip", [
"-d",
Expand All @@ -146,7 +145,6 @@ async function buildArchPackage(os, cpu, version, pre) {
const unzip = Transform.toWeb(zlib.createGunzip());

await res.body.pipeThrough(unzip).pipeTo(Writable.toWeb(c.stdin));
c.stdin.end();
}

debug("Finished unpacking into", dir);
Expand Down

0 comments on commit 21f24cb

Please sign in to comment.