mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
87968: Minor code changes to pass lint
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
Reference in New Issue
Block a user