mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Remove redundant binfile variable
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
3988f359dc
commit
147fac8504
1 changed files with 1 additions and 2 deletions
3
index.js
3
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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue