From eb2d9b2fde7ed4751d81a18109f3cd092a100f2c Mon Sep 17 00:00:00 2001 From: Davide Negretti Date: Thu, 5 May 2022 17:00:49 +0200 Subject: [PATCH] [CST-5674] Lint fixes --- src/app/core/resource-policy/resource-policy.service.ts | 2 +- .../resource-policies/form/resource-policy-form.component.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/core/resource-policy/resource-policy.service.ts b/src/app/core/resource-policy/resource-policy.service.ts index ae77ca84d6..ca3951109a 100644 --- a/src/app/core/resource-policy/resource-policy.service.ts +++ b/src/app/core/resource-policy/resource-policy.service.ts @@ -259,7 +259,7 @@ export class ResourcePolicyService { this.requestService.setStaleByHrefSubstring(`${this.dataService.getLinkPath()}/${resourcePolicyId}/${type}`); return targetEndpoint$.pipe(switchMap((targetEndpoint) => { - const resourceEndpoint = resourcePolicyHref + '/' + type + const resourceEndpoint = resourcePolicyHref + '/' + type; const request = new PostRequest(requestId, resourceEndpoint, targetEndpoint, options); Object.assign(request, { getResponseParser(): GenericConstructor { diff --git a/src/app/shared/resource-policies/form/resource-policy-form.component.ts b/src/app/shared/resource-policies/form/resource-policy-form.component.ts index 09be58fca4..223e610908 100644 --- a/src/app/shared/resource-policies/form/resource-policy-form.component.ts +++ b/src/app/shared/resource-policies/form/resource-policy-form.component.ts @@ -182,9 +182,7 @@ export class ResourcePolicyFormComponent implements OnInit, OnDestroy { this.navActiveId = String(dsoRD.payload.type); this.resourcePolicyTargetName$.next(this.getResourcePolicyTargetName()); }) - ) - } else { - + ); } }