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
+4 -4
View File
@@ -370,9 +370,9 @@ export class HookRunner {
if (process.platform === 'win32' && child.pid) {
try {
execSync(`taskkill /pid ${child.pid} /f /t`, { timeout: 2000 });
} catch (_e) {
} catch (e) {
// Ignore errors if process is already dead or access denied
debugLogger.debug(`Taskkill failed: ${_e}`);
debugLogger.debug(`Taskkill failed: ${e}`);
}
} else {
child.kill('SIGTERM');
@@ -384,9 +384,9 @@ export class HookRunner {
if (process.platform === 'win32' && child.pid) {
try {
execSync(`taskkill /pid ${child.pid} /f /t`, { timeout: 2000 });
} catch (_e) {
} catch (e) {
// Ignore
debugLogger.debug(`Taskkill failed: ${_e}`);
debugLogger.debug(`Taskkill failed: ${e}`);
}
} else {
child.kill('SIGKILL');