Skip to content

Commit

Permalink
close the fd
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Sep 5, 2024
1 parent ba6925e commit b40256e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/s3-md5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export async function verifyEtag(
actualEtag = await calculateS3ChunkedEtag(fd, parsedEtag.chunks);
}

await fd.close();

if (expectedEtag === actualEtag) {
return "valid";
} else {
Expand Down

0 comments on commit b40256e

Please sign in to comment.