Fix lint errors

This commit is contained in:
Michael Simacek 2023-08-30 10:01:50 +02:00
parent 7673153f99
commit 546edbcc91
3 changed files with 6 additions and 6 deletions

6
dist/setup/index.js vendored
View File

@ -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;
}

View File

@ -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;
}

View File

@ -280,11 +280,11 @@ export function getNextPageUrl<T>(response: ifm.ITypedResponse<T>) {
const responseHeaders = <ifm.IHeaders>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;
}