mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
Fix lint errors
This commit is contained in:
parent
7673153f99
commit
546edbcc91
3 changed files with 6 additions and 6 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -69657,7 +69657,7 @@ exports.installGraalPy = installGraalPy;
|
||||||
function getAvailableGraalPyVersions() {
|
function getAvailableGraalPyVersions() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const http = new httpm.HttpClient('tool-cache');
|
const http = new httpm.HttpClient('tool-cache');
|
||||||
let headers = {};
|
const headers = {};
|
||||||
if (AUTH) {
|
if (AUTH) {
|
||||||
headers.authorization = AUTH;
|
headers.authorization = AUTH;
|
||||||
}
|
}
|
||||||
|
@ -70518,11 +70518,11 @@ function getNextPageUrl(response) {
|
||||||
const responseHeaders = response.headers;
|
const responseHeaders = response.headers;
|
||||||
const linkHeader = responseHeaders.link;
|
const linkHeader = responseHeaders.link;
|
||||||
if (typeof linkHeader === 'string') {
|
if (typeof linkHeader === 'string') {
|
||||||
for (let link of linkHeader.split(/\s*,\s*/)) {
|
for (const link of linkHeader.split(/\s*,\s*/)) {
|
||||||
const match = link.match(/<([^>]+)>(.*)/);
|
const match = link.match(/<([^>]+)>(.*)/);
|
||||||
if (match) {
|
if (match) {
|
||||||
const url = match[1];
|
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"?/)) {
|
if (param.match(/rel="?next"?/)) {
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ export async function installGraalPy(
|
||||||
export async function getAvailableGraalPyVersions() {
|
export async function getAvailableGraalPyVersions() {
|
||||||
const http: httpm.HttpClient = new httpm.HttpClient('tool-cache');
|
const http: httpm.HttpClient = new httpm.HttpClient('tool-cache');
|
||||||
|
|
||||||
let headers: ifm.IHeaders = {};
|
const headers: ifm.IHeaders = {};
|
||||||
if (AUTH) {
|
if (AUTH) {
|
||||||
headers.authorization = AUTH;
|
headers.authorization = AUTH;
|
||||||
}
|
}
|
||||||
|
|
|
@ -280,11 +280,11 @@ export function getNextPageUrl<T>(response: ifm.ITypedResponse<T>) {
|
||||||
const responseHeaders = <ifm.IHeaders>response.headers;
|
const responseHeaders = <ifm.IHeaders>response.headers;
|
||||||
const linkHeader = responseHeaders.link;
|
const linkHeader = responseHeaders.link;
|
||||||
if (typeof linkHeader === 'string') {
|
if (typeof linkHeader === 'string') {
|
||||||
for (let link of linkHeader.split(/\s*,\s*/)) {
|
for (const link of linkHeader.split(/\s*,\s*/)) {
|
||||||
const match = link.match(/<([^>]+)>(.*)/);
|
const match = link.match(/<([^>]+)>(.*)/);
|
||||||
if (match) {
|
if (match) {
|
||||||
const url = match[1];
|
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"?/)) {
|
if (param.match(/rel="?next"?/)) {
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue