Skip to content

Commit 2f32b9f

Browse files
committed
simplify GOPATH
1 parent dc3a2f5 commit 2f32b9f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ import (
3030
)
3131

3232
func main() {
33-
gopath := os.Getenv("GOPATH")
34-
if len(gopath) == 0 {
35-
gopath = gobuild.Default.GOPATH
36-
}
33+
gopath := gobuild.Default.GOPATH
3734

3835
wd, err := os.Getwd()
3936
if err != nil {

0 commit comments

Comments
 (0)