Skip to content

Commit

Permalink
Sonar: Angular - Optional boolean parameters should have default value
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Jul 28, 2024
1 parent 770d724 commit 9cf32a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AccountService {
return this.userIdentity.authorities.some((authority: string) => authorities.includes(authority));
}

identity(force?: boolean): Observable<Account | null> {
identity(force = false): Observable<Account | null> {
if (!this.accountCache$ || force) {
this.accountCache$ = this.fetch().pipe(
tap((account: Account) => {
Expand Down

0 comments on commit 9cf32a6

Please sign in to comment.