mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 05:55:17 -07:00
Unused error variables in catch block are not allowed (#24487)
This commit is contained in:
@@ -138,7 +138,7 @@ class ExtensionIntegrityStore {
|
||||
let rawStore: IntegrityStore;
|
||||
try {
|
||||
rawStore = IntegrityStoreSchema.parse(JSON.parse(content));
|
||||
} catch (_) {
|
||||
} catch {
|
||||
throw new Error(
|
||||
`Failed to parse extension integrity store. ${resetInstruction}}`,
|
||||
);
|
||||
|
||||
@@ -258,7 +258,7 @@ export class ProjectRegistry {
|
||||
diskCollision = true;
|
||||
break;
|
||||
}
|
||||
} catch (_e) {
|
||||
} catch {
|
||||
// If we can't read it, assume it's someone else's to be safe
|
||||
diskCollision = true;
|
||||
break;
|
||||
@@ -274,7 +274,7 @@ export class ProjectRegistry {
|
||||
try {
|
||||
await this.ensureOwnershipMarkers(candidate, projectPath);
|
||||
return candidate;
|
||||
} catch (_e) {
|
||||
} catch {
|
||||
// Someone might have claimed it between our check and our write.
|
||||
// Try next candidate.
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user