87968: Minor code changes to pass lint

This commit is contained in:
Yura Bondarenko
2022-03-25 12:36:14 +01:00
parent bb51609af9
commit 99c41b9e80
27 changed files with 39 additions and 41 deletions

View File

@@ -112,7 +112,7 @@ export class AuthService {
if (hasValue(rd.payload) && rd.payload.authenticated) {
return rd.payload;
} else {
throw(new Error('Invalid email or password'));
throw (new Error('Invalid email or password'));
}
}));
@@ -166,7 +166,7 @@ export class AuthService {
if (hasValue(status) && status.authenticated) {
return status._links.eperson.href;
} else {
throw(new Error('Not authenticated'));
throw (new Error('Not authenticated'));
}
}));
}
@@ -249,7 +249,7 @@ export class AuthService {
if (hasValue(status) && status.authenticated) {
return status.token;
} else {
throw(new Error('Not authenticated'));
throw (new Error('Not authenticated'));
}
}));
}
@@ -288,7 +288,7 @@ export class AuthService {
if (hasValue(status) && !status.authenticated) {
return true;
} else {
throw(new Error('auth.errors.invalid-user'));
throw (new Error('auth.errors.invalid-user'));
}
}));
}