Skip to content

Commit

Permalink
refactor: remove unnecessary else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
renanfranca committed Sep 20, 2024
1 parent 38dc578 commit cdeffdd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ export class KeycloakHttp {
username: this.keycloak.tokenParsed?.preferred_username ?? '',
token: this.keycloak.token ?? '',
};
} else {
return { isAuthenticated: false, username: '', token: '' };
}
return { isAuthenticated: false, username: '', token: '' };
}

async login(): Promise<void> {
Expand Down

0 comments on commit cdeffdd

Please sign in to comment.