Skip to content

Commit 290da03

Browse files
committed
fix: remove redundant FileHandle.close()
Signed-off-by: Rui Chen <[email protected]>
1 parent f3cad8b commit 290da03

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { GitHub } from "@actions/github/lib/utils";
2-
import { Config, isTag, releaseBody, alignAssetName } from "./util";
32
import { statSync } from "fs";
43
import { open } from "fs/promises";
54
import { lookup } from "mime-types";
65
import { basename } from "path";
6+
import { alignAssetName, Config, isTag, releaseBody } from "./util";
77

88
type GitHub = InstanceType<typeof GitHub>;
99

@@ -202,7 +202,6 @@ export const upload = async (
202202
console.log(`✅ Uploaded ${name}`);
203203
return json;
204204
} finally {
205-
await fh.close().catch(() => {});
206205
}
207206
};
208207

0 commit comments

Comments
 (0)