File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments