Skip to content

Commit c40b15d

Browse files
author
Arvid Paeglit
committed
applied our own recommendation
1 parent 7e9385c commit c40b15d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/deepcode/lib/modules/LoginModule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class LoginModule extends ReportModule implements DeepCode.LoginModuleInterface
3838
}
3939
}
4040

41-
public checkSession(): Promise<boolean> | boolean {
42-
if (!this.token) return false;
41+
public checkSession(): Promise<boolean> {
42+
if (!this.token) return Promise.resolve(false);
4343
return http.checkSession(this.baseURL, this.token);
4444
}
4545

src/interfaces/DeepCodeInterfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ namespace DeepCode {
212212

213213
export interface LoginModuleInterface {
214214
initiateLogin(): Promise<void>;
215-
checkSession(): Promise<boolean> | boolean;
215+
checkSession(): Promise<boolean>;
216216
}
217217

218218
export interface BundlesModuleInterface {

0 commit comments

Comments
 (0)