From cdeffdd1797c8d680df84d4cfe9283bc4ca3aa35 Mon Sep 17 00:00:00 2001 From: Renan Franca Date: Fri, 20 Sep 2024 16:10:28 -0300 Subject: [PATCH] refactor: remove unnecessary else statement --- .../app/auth/infrastructure/secondary/KeycloakHttp.ts.mustache | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/generator/client/vue/webapp/app/auth/infrastructure/secondary/KeycloakHttp.ts.mustache b/src/main/resources/generator/client/vue/webapp/app/auth/infrastructure/secondary/KeycloakHttp.ts.mustache index ae69bce783c..86f984b771c 100644 --- a/src/main/resources/generator/client/vue/webapp/app/auth/infrastructure/secondary/KeycloakHttp.ts.mustache +++ b/src/main/resources/generator/client/vue/webapp/app/auth/infrastructure/secondary/KeycloakHttp.ts.mustache @@ -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 {