fix(release): drop stray TS annotation in .cjs GitHub path

The hardening-round edit left `(): Promise<Response> =>` in a plain .cjs
file; every run since that commit died at parse time before reaching any flag
handling.
This commit is contained in:
Bill committed 2026-09-28 13:39:25 +08:00
1 parent b7c7c5cd76
commit 680254cad6
1 file changed
+1 -1
+1 -1
View File
@@ -254,7 +254,7 @@ async function github() {
// Idempotent like gitea(): a re-run after a partial publish must reuse the
// release it created last time instead of dying on 422 already_exists and
// leaving GitHub permanently half-uploaded until someone deletes it by hand.
const byTag = (): Promise<Response> => gh(`${api}/releases/tags/v${V}`)
const byTag = () => gh(`${api}/releases/tags/v${V}`)
let resp = await byTag()
let rel
if (resp.ok) {