From 90fdf52904ff07f163330497063b7d30e32e242a Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Fri, 21 Jun 2019 14:54:30 -0400 Subject: [PATCH] clean up --- lib/installer.js | 4 ++-- src/installer.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index fd6a338..4829000 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -110,10 +110,10 @@ function setGoEnvironmentVariables(goRoot) { const goPath = process.env['GOPATH'] || ''; const goBin = process.env['GOBIN'] || ''; // set GOPATH and GOBIN as user value - if (!util.isNullOrUndefined(goPath)) { + if (goPath) { core.exportVariable('GOPATH', goPath); } - if (!util.isNullOrUndefined(goBin)) { + if (goBin) { core.exportVariable('GOBIN', goBin); } } diff --git a/src/installer.ts b/src/installer.ts index 660743d..cb33548 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -106,10 +106,10 @@ function setGoEnvironmentVariables(goRoot: string) { const goBin: string = process.env['GOBIN'] || ''; // set GOPATH and GOBIN as user value - if (!util.isNullOrUndefined(goPath)) { + if (goPath) { core.exportVariable('GOPATH', goPath); } - if (!util.isNullOrUndefined(goBin)) { + if (goBin) { core.exportVariable('GOBIN', goBin); } }