mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-18 23:36:43 -07:00
Unused error variables in catch block are not allowed (#24487)
This commit is contained in:
@@ -23,9 +23,9 @@ export const isGitHubRepository = (): boolean => {
|
||||
const pattern = /github\.com/;
|
||||
|
||||
return pattern.test(remotes);
|
||||
} catch (_error) {
|
||||
} catch (error) {
|
||||
// If any filesystem error occurs, assume not a git repo
|
||||
debugLogger.debug(`Failed to get git remote:`, _error);
|
||||
debugLogger.debug(`Failed to get git remote:`, error);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -85,10 +85,10 @@ export const getLatestGitHubRelease = async (
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return releaseTag;
|
||||
} catch (_error) {
|
||||
} catch (error) {
|
||||
debugLogger.debug(
|
||||
`Failed to determine latest run-gemini-cli release:`,
|
||||
_error,
|
||||
error,
|
||||
);
|
||||
throw new Error(
|
||||
`Unable to determine the latest run-gemini-cli release on GitHub.`,
|
||||
|
||||
Reference in New Issue
Block a user