mirror of
https://github.com/actions/setup-go.git
synced 2023-09-23 05:03:39 +00:00
clean up
This commit is contained in:
parent
0f39ca7c72
commit
90fdf52904
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user