mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 21:32:56 -07:00
Unused error variables in catch block are not allowed (#24487)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user