From 7021e3e0f4175094e21bbee188fedc606d92311a Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Sat, 3 Oct 2020 12:46:21 -0400 Subject: [PATCH] chore: reduce branching in authenticator --- ui/core/app/authenticators/password.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/core/app/authenticators/password.js b/ui/core/app/authenticators/password.js index 43a9c8fb7..f9d97033e 100644 --- a/ui/core/app/authenticators/password.js +++ b/ui/core/app/authenticators/password.js @@ -77,7 +77,7 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator { */ restore(data) { const token = data?.token; - if (token) this.addTokenToAuthorization(token); + this.addTokenToAuthorization(token); return super.restore(data); }