From 147fac8504acfa33a408cb3d2f10372103a4e544 Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 16:41:58 +1300 Subject: [PATCH] Remove redundant `binfile` variable Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com> --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 7c03661..4ac941c 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,6 @@ async function downloadRelease(octokit, os, org, repo, release, token) { const postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`; const tempdir = os === "windows" ? process.env.TEMP + "\\" : "/tmp/"; const extract = os === "windows" ? "tar -xvf" : "tar -xvzf"; - const binfile = os === "windows" ? "gotestfmt.exe" : "gotestfmt"; const archive = `${tempdir}gotestfmt${postfix}`; // Search through the latest release assets for an install canidate @@ -46,7 +45,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) { fs.unlinkSync(archive) // Successfully installed gotestfmt, return early - console.log(`Successfully set up ${binfile}`) + console.log("Successfully set up gotestfmt.") return } }