Skip to content

Commit 3e014ec

Browse files
lint
1 parent 75899f8 commit 3e014ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ function run() {
13081308
console.log('Added go to the path');
13091309
// if the global installed bin wasn't added,
13101310
// we can add the bin just installed
1311-
if (!addBinToPath) {
1311+
if (!addedBin) {
13121312
addBinToPath();
13131313
}
13141314
}
@@ -1331,8 +1331,10 @@ function addBinToPath() {
13311331
let buf = cp.execSync('go env GOPATH');
13321332
if (buf) {
13331333
let d = buf.toString().trim();
1334+
core.debug(`go env GOPATH: ${d}`);
13341335
let bp = path.join(d, 'bin');
13351336
if (fs.existsSync(bp)) {
1337+
core.debug(`${bp} exists`);
13361338
core.addPath(bp);
13371339
added = true;
13381340
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function addBinToPath(): boolean {
6767
let d = buf.toString().trim();
6868
core.debug(`go env GOPATH: ${d}`);
6969
let bp = path.join(d, 'bin');
70-
70+
7171
if (fs.existsSync(bp)) {
7272
core.debug(`${bp} exists`);
7373
core.addPath(bp);

0 commit comments

Comments
 (0)