mirror of
https://github.com/actions/setup-python.git
synced 2025-07-23 22:18:20 +02:00
Fix lint errors
This commit is contained in:
parent
7673153f99
commit
546edbcc91
3 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue