diff --git a/dist/setup/index.js b/dist/setup/index.js index 7df05ebe..924f6ca9 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -69657,7 +69657,7 @@ exports.installGraalPy = installGraalPy; function getAvailableGraalPyVersions() { return __awaiter(this, void 0, void 0, function* () { const http = new httpm.HttpClient('tool-cache'); - let headers = {}; + const headers = {}; if (AUTH) { headers.authorization = AUTH; } @@ -70518,11 +70518,11 @@ function getNextPageUrl(response) { const responseHeaders = response.headers; const linkHeader = responseHeaders.link; if (typeof linkHeader === 'string') { - for (let link of linkHeader.split(/\s*,\s*/)) { + for (const link of linkHeader.split(/\s*,\s*/)) { const match = link.match(/<([^>]+)>(.*)/); if (match) { const url = match[1]; - for (let param of match[2].split(/\s*;\s*/)) { + for (const param of match[2].split(/\s*;\s*/)) { if (param.match(/rel="?next"?/)) { return url; } diff --git a/src/install-graalpy.ts b/src/install-graalpy.ts index 05e649e4..65a5bfd8 100644 --- a/src/install-graalpy.ts +++ b/src/install-graalpy.ts @@ -109,7 +109,7 @@ export async function installGraalPy( export async function getAvailableGraalPyVersions() { const http: httpm.HttpClient = new httpm.HttpClient('tool-cache'); - let headers: ifm.IHeaders = {}; + const headers: ifm.IHeaders = {}; if (AUTH) { headers.authorization = AUTH; } diff --git a/src/utils.ts b/src/utils.ts index 28ad8ef7..5db3eb60 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -280,11 +280,11 @@ export function getNextPageUrl(response: ifm.ITypedResponse) { const responseHeaders = response.headers; const linkHeader = responseHeaders.link; if (typeof linkHeader === 'string') { - for (let link of linkHeader.split(/\s*,\s*/)) { + for (const link of linkHeader.split(/\s*,\s*/)) { const match = link.match(/<([^>]+)>(.*)/); if (match) { const url = match[1]; - for (let param of match[2].split(/\s*;\s*/)) { + for (const param of match[2].split(/\s*;\s*/)) { if (param.match(/rel="?next"?/)) { return url; }