Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
  • Loading branch information
1000TurquoisePogs committed Mar 21, 2024
1 parent b05fa23 commit 4170463
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;

export function atlasAction(endpoint, content) {
// 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}`, content);
return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf${trimmedEndpoint}`, content);
}

export function atlasGet(endpoint) {
Expand Down

0 comments on commit 4170463

Please sign in to comment.