mirror of
https://github.com/actions/setup-python.git
synced 2025-04-18 18:43:31 +00:00
Fix lint errors
This commit is contained in:
parent
7673153f99
commit
546edbcc91
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user