Skip to content

Commit

Permalink
Merge pull request jhipster#10439 from qmonmert/angtypo
Browse files Browse the repository at this point in the history
Sonar: Angular - Optional boolean parameters should have default value
  • Loading branch information
murdos authored Jul 28, 2024
2 parents 2f4fd8e + 9cf32a6 commit 6e98219
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 6e98219

Please sign in to comment.