Skip to content

Commit 90fdf52

Browse files
author
Danny McCormick
committed
clean up
1 parent 0f39ca7 commit 90fdf52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/installer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ function setGoEnvironmentVariables(goRoot) {
110110
const goPath = process.env['GOPATH'] || '';
111111
const goBin = process.env['GOBIN'] || '';
112112
// set GOPATH and GOBIN as user value
113-
if (!util.isNullOrUndefined(goPath)) {
113+
if (goPath) {
114114
core.exportVariable('GOPATH', goPath);
115115
}
116-
if (!util.isNullOrUndefined(goBin)) {
116+
if (goBin) {
117117
core.exportVariable('GOBIN', goBin);
118118
}
119119
}

src/installer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ function setGoEnvironmentVariables(goRoot: string) {
106106
const goBin: string = process.env['GOBIN'] || '';
107107

108108
// set GOPATH and GOBIN as user value
109-
if (!util.isNullOrUndefined(goPath)) {
109+
if (goPath) {
110110
core.exportVariable('GOPATH', goPath);
111111
}
112-
if (!util.isNullOrUndefined(goBin)) {
112+
if (goBin) {
113113
core.exportVariable('GOBIN', goBin);
114114
}
115115
}

0 commit comments

Comments
 (0)