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
+5 -5
View File
@@ -43,7 +43,7 @@ export function runSyncCleanup() {
for (const fn of syncCleanupFunctions) {
try {
fn();
} catch (_) {
} catch {
// Ignore errors during cleanup.
}
}
@@ -67,7 +67,7 @@ export async function runExitCleanup() {
for (const fn of cleanupFunctions) {
try {
await fn();
} catch (_) {
} catch {
// Ignore errors during cleanup.
}
}
@@ -76,14 +76,14 @@ export async function runExitCleanup() {
// Close persistent browser sessions before disposing config
try {
await resetBrowserSession();
} catch (_) {
} catch {
// Ignore errors during browser cleanup
}
if (configForTelemetry) {
try {
await configForTelemetry.dispose();
} catch (_) {
} catch {
// Ignore errors during disposal
}
}
@@ -93,7 +93,7 @@ export async function runExitCleanup() {
if (configForTelemetry && isTelemetrySdkInitialized()) {
try {
await shutdownTelemetry(configForTelemetry);
} catch (_) {
} catch {
// Ignore errors during telemetry shutdown
}
}