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 0711eaf26e
commit 72a6cbed5f
92 changed files with 162 additions and 157 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ export async function killProcessGroup(options: KillOptions): Promise<void> {
// Invoke taskkill to ensure the entire tree is terminated and any orphaned descendant processes are reaped.
try {
await spawnAsync('taskkill', ['/pid', pid.toString(), '/f', '/t']);
} catch (_e) {
} catch {
// Ignore errors if the process tree is already dead
}
return;
@@ -72,7 +72,7 @@ export async function killProcessGroup(options: KillOptions): Promise<void> {
}
}
}
} catch (_e) {
} catch {
// Fallback to specific process kill if group kill fails or on error
if (!isExited()) {
if (pty) {