mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-18 17:20:38 -07:00
Disallow floating promises. (#14605)
This commit is contained in:
committed by
GitHub
parent
3cf44acc08
commit
025e450ac2
@@ -154,6 +154,7 @@ export function AuthDialog({
|
||||
if (error) {
|
||||
onAuthError(error);
|
||||
} else {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
onSelect(authMethod, SettingScope.User);
|
||||
}
|
||||
};
|
||||
@@ -173,6 +174,7 @@ export function AuthDialog({
|
||||
);
|
||||
return;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
onSelect(undefined, SettingScope.User);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -64,11 +64,13 @@ export const useAuthCommand = (settings: LoadedSettings, config: Config) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (authState === AuthState.AwaitingApiKeyInput) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
reloadApiKey();
|
||||
}
|
||||
}, [authState, reloadApiKey]);
|
||||
|
||||
useEffect(() => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
(async () => {
|
||||
if (authState !== AuthState.Unauthenticated) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user