Update index.js

This commit is contained in:
Plamen Totev 2020-04-14 21:31:28 +03:00
parent 249ea4386f
commit 109dbacebe

2
dist/index.js generated vendored
View file

@ -4668,6 +4668,7 @@ if (!tempDirectory) {
} }
function getJava(version, arch, jdkFile, javaPackage) { function getJava(version, arch, jdkFile, javaPackage) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
version = normalizeVersion(version);
let toolPath = tc.find(javaPackage, version); let toolPath = tc.find(javaPackage, version);
if (toolPath) { if (toolPath) {
core.debug(`Tool found in cache ${toolPath}`); core.debug(`Tool found in cache ${toolPath}`);
@ -4805,7 +4806,6 @@ function unzipJavaDownload(repoRoot, fileEnding, destinationFolder, extension) {
}); });
} }
function getDownloadInfo(refs, version, javaPackage) { function getDownloadInfo(refs, version, javaPackage) {
version = normalizeVersion(version);
let extension = ''; let extension = '';
if (IS_WINDOWS) { if (IS_WINDOWS) {
extension = `-win_x64.zip`; extension = `-win_x64.zip`;