Skip to content

Commit 5429ce4

Browse files
authored
fix: issues identified by sonar (#1818)
Signed-off-by: Adam Setch <[email protected]>
1 parent bbcdf1f commit 5429ce4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/renderer/context/App.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ export const defaultSettings: SettingsState = {
114114
interface AppContextState {
115115
auth: AuthState;
116116
isLoggedIn: boolean;
117-
loginWithGitHubApp: () => void;
118-
loginWithOAuthApp: (data: LoginOAuthAppOptions) => void;
119-
loginWithPersonalAccessToken: (data: LoginPersonalAccessTokenOptions) => void;
120-
logoutFromAccount: (account: Account) => void;
117+
loginWithGitHubApp: () => Promise<void>;
118+
loginWithOAuthApp: (data: LoginOAuthAppOptions) => Promise<void>;
119+
loginWithPersonalAccessToken: (
120+
data: LoginPersonalAccessTokenOptions,
121+
) => Promise<void>;
122+
logoutFromAccount: (account: Account) => Promise<void>;
121123

122124
notifications: AccountNotifications[];
123125
status: Status;

0 commit comments

Comments
 (0)