From 56985e30f427101dacea5cc6712e1f8b4dea1425 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Thu, 21 Mar 2024 08:37:50 -0400 Subject: [PATCH] Fix for linter Signed-off-by: 1000TurquoisePogs --- WebContent/js/utilities/urlUtils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WebContent/js/utilities/urlUtils.js b/WebContent/js/utilities/urlUtils.js index 13055b8..89f0d08 100644 --- a/WebContent/js/utilities/urlUtils.js +++ b/WebContent/js/utilities/urlUtils.js @@ -20,13 +20,12 @@ export function whichServer() { return server; } - // zosmf/ const ZOSMF_PREFIX_LENGTH = 6; export function atlasAction(endpoint, content) { // In v3, /ibmzosmf/api/v1 endpoint removes /zosmf part of a /zosmf URL, so string must be trimmed. - let trimmedEndpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH); + const trimmedEndpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH); return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf${trimmedEndpoint}`, content); }