From 9dc9bdf4621308edb0d1d1e9520ad27f224e584c Mon Sep 17 00:00:00 2001 From: jufiedle Date: Wed, 17 Jul 2024 14:17:02 +0200 Subject: [PATCH] P002271-7516: fixing lint issues --- .../src/lib/services/workspace.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/angular-integration-interface/src/lib/services/workspace.service.ts b/libs/angular-integration-interface/src/lib/services/workspace.service.ts index 921efd68..a08da7a6 100644 --- a/libs/angular-integration-interface/src/lib/services/workspace.service.ts +++ b/libs/angular-integration-interface/src/lib/services/workspace.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core' import { AppStateService } from './app-state.service' -import { Observable, of, map } from 'rxjs' +import { Observable, map } from 'rxjs' import { Route } from '@onecx/integration-interface' import { Endpoint } from '@onecx/integration-interface' import { Location } from '@angular/common' @@ -24,7 +24,7 @@ export class WorkspaceService { ): Observable { return this.appStateService.currentWorkspace$.pipe( map((workspace) => { - let finalUrl = this.constructRouteUrl(workspace, appId, productName, endpointName, params) + const finalUrl = this.constructRouteUrl(workspace, appId, productName, endpointName, params) return finalUrl }) ) @@ -127,11 +127,11 @@ export class WorkspaceService { private fillParamsForPath(path: string, params: Record): string { while (path.includes(this.paramStart)) { - let paramName = path.substring( + const paramName = path.substring( path.indexOf(this.paramStart) + this.paramStart.length, path.indexOf(this.paramEnd) ) - let paramValue = this.getStringFromUnknown(params[paramName]) + const paramValue = this.getStringFromUnknown(params[paramName]) if (paramValue != undefined && paramValue.length > 0) { path = path.replace(this.paramStart.concat(paramName).concat(this.paramEnd), paramValue) } else {