Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Mar 21, 2024
1 parent af0c25a commit 3a1899c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebContent/js/utilities/urlUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const ZOSMF_PREFIX_LENGTH = 6;

function atlasAction(endpoint, content, fetchParams) {
// In v3, /ibmzosmf/api/v1 endpoint removes /zosmf part of a /zosmf URL, so string must be trimmed.
endpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH);
let trimmedEndpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH);

Check failure on line 29 in WebContent/js/utilities/urlUtils.js

View workflow job for this annotation

GitHub Actions / run-lint

'trimmedEndpoint' is never reassigned. Use 'const' instead

return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf/${endpoint}`, { ...fetchParams, ...content });
return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf/${trimmedEndpoint}`, { ...fetchParams, ...content });
}

export function atlasGet(endpoint, content) {
Expand Down

0 comments on commit 3a1899c

Please sign in to comment.