mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-5738] fix LGTM alert
This commit is contained in:
@@ -35,7 +35,7 @@ export abstract class AuthRequestService {
|
|||||||
|
|
||||||
protected getEndpointByMethod(endpoint: string, method: string, ...linksToFollow: FollowLinkConfig<AuthStatus>[]): string {
|
protected getEndpointByMethod(endpoint: string, method: string, ...linksToFollow: FollowLinkConfig<AuthStatus>[]): string {
|
||||||
let url = isNotEmpty(method) ? `${endpoint}/${method}` : `${endpoint}`;
|
let url = isNotEmpty(method) ? `${endpoint}/${method}` : `${endpoint}`;
|
||||||
if (linksToFollow && linksToFollow.length > 0) {
|
if (linksToFollow?.length > 0) {
|
||||||
linksToFollow.forEach((link: FollowLinkConfig<AuthStatus>, index: number) => {
|
linksToFollow.forEach((link: FollowLinkConfig<AuthStatus>, index: number) => {
|
||||||
url += ((index === 0) ? '?' : '&') + `embed=${link.name}`;
|
url += ((index === 0) ? '?' : '&') + `embed=${link.name}`;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user