From f40727714820d76fb8172952495c82468d7a0693 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Fri, 11 Nov 2022 09:10:22 +0100 Subject: [PATCH] Apply requested changes --- dist/setup/index.js | 3 +-- src/installer.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 291a6a129..887654434 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -73569,8 +73569,7 @@ function queryDistForMatch(versionSpec, arch = os_1.default.arch(), nodeVersions } }); // get the latest version that matches the version spec - let version = evaluateVersions(versions, versionSpec); - return version; + return evaluateVersions(versions, versionSpec); }); } exports.queryDistForMatch = queryDistForMatch; diff --git a/src/installer.ts b/src/installer.ts index fa86711fc..cb6826982 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -512,8 +512,7 @@ export async function queryDistForMatch( }); // get the latest version that matches the version spec - let version = evaluateVersions(versions, versionSpec); - return version; + return evaluateVersions(versions, versionSpec); } export async function getVersionsFromDist(