mirror of
https://github.com/actions/setup-java.git
synced 2026-06-23 15:18:20 +00:00
refactor: rename pagination index for clarity
This commit is contained in:
committed by
GitHub
parent
05917d5627
commit
8a5fc42d92
Vendored
+1
-1
@@ -79298,7 +79298,7 @@ class GraalVMCommunityDistribution extends GraalVMDistribution {
|
||||
const headers = (0, util_1.getGitHubHttpHeaders)();
|
||||
const versions = new Map();
|
||||
let releasesUrl = GRAALVM_COMMUNITY_RELEASES_URL;
|
||||
for (let page = 0; releasesUrl && page < util_1.MAX_PAGINATION_PAGES; page++) {
|
||||
for (let pageIndex = 0; releasesUrl && pageIndex < util_1.MAX_PAGINATION_PAGES; pageIndex++) {
|
||||
const response = yield this.http.getJson(releasesUrl, headers);
|
||||
const releases = Array.isArray(response.result) ? response.result : [];
|
||||
if (releases.length === 0) {
|
||||
|
||||
@@ -381,7 +381,11 @@ export class GraalVMCommunityDistribution extends GraalVMDistribution {
|
||||
const versions = new Map<string, JavaDownloadRelease>();
|
||||
let releasesUrl: string | null = GRAALVM_COMMUNITY_RELEASES_URL;
|
||||
|
||||
for (let page = 0; releasesUrl && page < MAX_PAGINATION_PAGES; page++) {
|
||||
for (
|
||||
let pageIndex = 0;
|
||||
releasesUrl && pageIndex < MAX_PAGINATION_PAGES;
|
||||
pageIndex++
|
||||
) {
|
||||
const response = await this.http.getJson<GraalVMCommunityRelease[]>(
|
||||
releasesUrl,
|
||||
headers
|
||||
|
||||
Reference in New Issue
Block a user