fix: retire legacy empty-catch baseline entries

Name every empty catch binding, state why each discarded failure is safe,
and narrow each wide try to the single statement whose failure is tolerated.
The empty-catch baseline is now empty.
This commit is contained in:
Turtle committed 2026-11-13 15:28:28 +08:00
1 parent 8c328900d1
commit f184f77006
94 files changed
+391 -587

No files matched your search

@@ -101,7 +101,7 @@ export function createGitHubWebhookHandler(
let verified = false
try {
verified = await new Webhooks({ secret: credential.value }).verify(body, signature)
} catch {
} catch (_verificationFailed) {
// Octokit verification errors carry no response detail safe or useful to the sender.
}
if (!verified) throw new WebhookHttpError(401, 'invalid webhook signature')