From 09a37292b585e758c93d9b56f4b2ee1f272e7097 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 3 May 2021 19:32:08 +0530 Subject: [PATCH] Remove unused import and repeated code in monkey_island/cc/ui/src/services/AuthService.js --- monkey/monkey_island/cc/ui/src/services/AuthService.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/services/AuthService.js b/monkey/monkey_island/cc/ui/src/services/AuthService.js index 7a99ba819..d7d1b9c2f 100644 --- a/monkey/monkey_island/cc/ui/src/services/AuthService.js +++ b/monkey/monkey_island/cc/ui/src/services/AuthService.js @@ -1,4 +1,3 @@ -import {SHA3} from 'sha3'; import decode from 'jwt-decode'; export default class AuthService { @@ -42,11 +41,7 @@ export default class AuthService { }; register = (username, password) => { - if (password !== '') { - return this._register(username, password); - } else { - return this._register(username, password); - } + return this._register(username, password); }; _register = (username, password) => {