From 93ddff5bef65ffc5ed5b55e665c55e1aba156ed6 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 26 Mar 2020 12:55:08 -0400 Subject: [PATCH] lint --- dist/index.js | 6 +++++- src/main.ts | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9bcdebb..bc33c82 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1331,6 +1331,7 @@ function addBinToPath() { return __awaiter(this, void 0, void 0, function* () { let added = false; let g = yield io.which('go'); + core.debug(`which go :${g};`); if (!g) { core.debug('go not in the path'); return added; @@ -1338,7 +1339,7 @@ function addBinToPath() { let buf = cp.execSync('go env GOPATH'); if (buf) { let gp = buf.toString().trim(); - core.debug(`go env GOPATH: ${gp}`); + core.debug(`go env GOPATH :${gp}:`); if (fs.existsSync(gp)) { let bp = path.join(gp, 'bin'); if (!fs.existsSync(bp)) { @@ -1348,6 +1349,9 @@ function addBinToPath() { core.addPath(bp); added = true; } + else { + core.debug('go env GOPATH does not exist'); + } } return added; }); diff --git a/src/main.ts b/src/main.ts index 5d79459..3dbba07 100644 --- a/src/main.ts +++ b/src/main.ts @@ -82,8 +82,7 @@ async function addBinToPath(): Promise { core.addPath(bp); added = true; - } - else { + } else { core.debug('go env GOPATH does not exist'); } }