]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: tiny cleanup
authorRuss Cox <rsc@golang.org>
Fri, 11 Dec 2015 16:35:23 +0000 (11:35 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 16 Dec 2015 20:22:28 +0000 (20:22 +0000)
Change-Id: I65084e518c735f1e50d191a612cd32533b241685
Reviewed-on: https://go-review.googlesource.com/17742
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/get.go

index aac21a0f22ad46e623dc508474f346d3b86ab005..d97afb90dec6d15860f38f3c79667194899f0a83 100644 (file)
@@ -87,7 +87,7 @@ func runGet(cmd *Command, args []string) {
        // If user has explicitly set GIT_TERMINAL_PROMPT=1, keep
        // prompting.
        // See golang.org/issue/9341 and golang.org/issue/12706.
-       if v := os.Getenv("GIT_TERMINAL_PROMPT"); v == "" {
+       if os.Getenv("GIT_TERMINAL_PROMPT") == "" {
                os.Setenv("GIT_TERMINAL_PROMPT", "0")
        }