From 33ea5714618299da000bb2f11acef92bff7dbb65 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Fri, 12 Mar 2021 12:29:59 +0100 Subject: [PATCH] Always add 'ga' and 'ea' only if it is in the version number --- dist/setup/index.js | 4 +--- src/installer.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 20011261..f4495424 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -33737,9 +33737,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') { if (version.includes('ea')) { url += '&release_status=ea'; } - else { - url += '&release_status=ga'; - } + url += '&release_status=ga'; url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; diff --git a/src/installer.ts b/src/installer.ts index 16fac744..c70e196d 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -268,9 +268,8 @@ async function getDownloadInfo( } if (version.includes('ea')) { url += '&release_status=ea'; - } else { - url += '&release_status=ga'; } + url += '&release_status=ga'; url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType;