From 9cf32a6829ec5f6032ae5c6758729741ef98a71e Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 28 Jul 2024 22:29:48 +0200 Subject: [PATCH] Sonar: Angular - Optional boolean parameters should have default value --- .../jwt/src/main/webapp/app/auth/account.service.ts.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/account.service.ts.mustache b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/account.service.ts.mustache index 4c8bb4cd914..bfda65e2ff0 100644 --- a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/account.service.ts.mustache +++ b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/account.service.ts.mustache @@ -31,7 +31,7 @@ export class AccountService { return this.userIdentity.authorities.some((authority: string) => authorities.includes(authority)); } - identity(force?: boolean): Observable { + identity(force = false): Observable { if (!this.accountCache$ || force) { this.accountCache$ = this.fetch().pipe( tap((account: Account) => {