mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-04 07:07:16 -07:00
Unused error variables in catch block are not allowed (#24487)
This commit is contained in:
@@ -35,7 +35,7 @@ export function isGitRepository(directory: string): boolean {
|
||||
}
|
||||
|
||||
return false;
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
// If any filesystem error occurs, assume not a git repo
|
||||
return false;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ export function findGitRoot(directory: string): string | null {
|
||||
}
|
||||
|
||||
return null;
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user