]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/load: remove redundant assignment to BinDir
authorBryan C. Mills <bcmills@google.com>
Thu, 8 Nov 2018 14:46:24 +0000 (09:46 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 29 Nov 2018 18:58:21 +0000 (18:58 +0000)
This assignment became a no-op in CL 36196, where both it and the
preceding assignment were changed to cfg.GOROOTbin (from gorootBin and
gobin respectively).

Change-Id: If74969c4cc3ffc5d8394ff9d8e8bcec9e0a4e3b0
Reviewed-on: https://go-review.googlesource.com/c/151561
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/load/pkg.go

index 72a3d70607441baf2a559592acd3105e5c93e3d6..616adcc57ae8073095e86d91384bf9e56f4382d3 100644 (file)
@@ -1769,9 +1769,6 @@ func loadPackage(arg string, stk *ImportStack) *Package {
                bp.ImportPath = arg
                bp.Goroot = true
                bp.BinDir = cfg.GOROOTbin
-               if cfg.GOROOTbin != "" {
-                       bp.BinDir = cfg.GOROOTbin
-               }
                bp.Root = cfg.GOROOT
                bp.SrcRoot = cfg.GOROOTsrc
                p := new(Package)