]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/envcmd: remove duplicate env value set
authorMichael Matloob <matloob@golang.org>
Fri, 17 May 2024 16:58:10 +0000 (12:58 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 17 May 2024 18:28:42 +0000 (18:28 +0000)
CL 586095 wasn't needed because setting the GODEBUG value was just moved
lower in CL 563137. Now we set it twice. Remove the second set so that
it's only set once.

Change-Id: I4a830977833b007e996d0ccaec705a1da4631e6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/586477
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/go/internal/envcmd/env.go

index b25010a29a508a4cd171780edb8e10beea2d15e9..c4836b2f9528883eefaa9f0130f30825dd7a7ab9 100644 (file)
@@ -132,7 +132,6 @@ func MkEnv() []cfg.EnvVar {
                                env[i].Changed = true
                        }
                case "GODEBUG":
-                       env[i].Value = os.Getenv("GODEBUG")
                        env[i].Changed = env[i].Value != ""
                }
        }