mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
ESLint: fix prefer-const violations
This commit is contained in:
@@ -260,9 +260,8 @@ export class AuthService {
|
||||
select(getAuthenticationToken),
|
||||
take(1),
|
||||
map((authTokenInfo: AuthTokenInfo) => {
|
||||
let token: AuthTokenInfo;
|
||||
// Retrieve authentication token info and check if is valid
|
||||
token = isNotEmpty(authTokenInfo) ? authTokenInfo : this.storage.get(TOKENITEM);
|
||||
const token = isNotEmpty(authTokenInfo) ? authTokenInfo : this.storage.get(TOKENITEM);
|
||||
if (isNotEmpty(token) && token.hasOwnProperty('accessToken') && isNotEmpty(token.accessToken) && !this.isTokenExpired(token)) {
|
||||
return token;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user