mirror of
https://github.com/actions/setup-go.git
synced 2026-10-07 11:53:00 +00:00
Use const declarations for variables that are never reassigned (#322)
This commit is contained in:
1 parent
21459d0b7b
commit
807559307d
4 files changed
+16
-16
No files matched your search
+2
-2
@@ -67,8 +67,8 @@ export async function run() {
|
||||
core.info(`##[add-matcher]${matchersPath}`);
|
||||
|
||||
// output the version actually being used
|
||||
let goPath = await io.which('go');
|
||||
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();
|
||||
const goPath = await io.which('go');
|
||||
const goVersion = (cp.execSync(`${goPath} version`) || '').toString();
|
||||
core.info(goVersion);
|
||||
|
||||
core.setOutput('go-version', parseGoVersion(goVersion));
|
||||
|
||||
Reference in new issue
Block a user