Unused error variables in catch block are not allowed (#24487)

This commit is contained in:
Alisa
2026-04-01 21:33:07 -07:00
committed by GitHub
parent 84936dc85d
commit 3344f6849c
92 changed files with 162 additions and 157 deletions

View File

@@ -180,7 +180,7 @@ async function main() {
// Re-throw if it's not a conflict error
throw error;
}
} catch (_statusError) {
} catch {
// Re-throw original error if we can't determine the status
throw error;
}
@@ -268,7 +268,7 @@ function branchExists(branchName) {
try {
execSync(`git ls-remote --exit-code --heads origin ${branchName}`);
return true;
} catch (_e) {
} catch {
return false;
}
}