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
+4 -4
View File
@@ -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.`,