Remove redundant binfile variable

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 16:41:58 +13:00 committed by GitHub
parent 3988f359dc
commit 147fac8504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}