From 5ffc60a1a3f0dd0e4b19e7cdfdf9ea175d4c71d8 Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 09:39:29 +1300 Subject: [PATCH] Make postfix constant Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com> --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9ef1ba9..9a55b4e 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) { release_id: release.id, }) - postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`; + const postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`; for (let asset of releaseAssets.data) { console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")