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
+3 -3
View File
@@ -49,7 +49,7 @@ async function getProcessTableWindows(): Promise<Map<number, ProcessInfo>> {
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
processes = JSON.parse(stdout);
} catch (_e) {
} catch {
return processMap;
}
@@ -67,7 +67,7 @@ async function getProcessTableWindows(): Promise<Map<number, ProcessInfo>> {
});
}
}
} catch (_e) {
} catch {
// Fallback or error handling if PowerShell fails
}
return processMap;
@@ -102,7 +102,7 @@ async function getProcessInfo(pid: number): Promise<{
name: processName,
command: fullCommand,
};
} catch (_e) {
} catch {
return { parentPid: 0, name: '', command: '' };
}
}