Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny McCormick committed Jun 21, 2019
1 parent 0f39ca7 commit 90fdf52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 90fdf52

Please sign in to comment.