Skip to content

Commit 0dbc7e4

Browse files
toString
1 parent 2091469 commit 0dbc7e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ function run() {
13201320
console.log(`##[add-matcher]${matchersPath}`);
13211321
// output the version actually being used
13221322
let goPath = yield io.which('go');
1323-
let goVersion = child_process_1.default.execSync(`${goPath} version`);
1323+
let goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
13241324
console.log(goVersion);
13251325
}
13261326
catch (error) {

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function run() {
5353

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

5858
console.log(goVersion);
5959
} catch (error) {

0 commit comments

Comments
 (0)