Skip to content

Commit

Permalink
toString
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmacfarlane committed Mar 31, 2020
1 parent 2091469 commit 0dbc7e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ function run() {
console.log(`##[add-matcher]${matchersPath}`);
// output the version actually being used
let goPath = yield io.which('go');
let goVersion = child_process_1.default.execSync(`${goPath} version`);
let goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
console.log(goVersion);
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function run() {

// output the version actually being used
let goPath = await io.which('go');
let goVersion = cp.execSync(`${goPath} version`);
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();

console.log(goVersion);
} catch (error) {
Expand Down

0 comments on commit 0dbc7e4

Please sign in to comment.