From aab0b704d88b7dad10c767ad941619d59887203c Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Thu, 8 Nov 2018 09:46:24 -0500 Subject: [PATCH] cmd/go/internal/load: remove redundant assignment to BinDir 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 TryBot-Result: Gobot Gobot Reviewed-by: Russ Cox --- src/cmd/go/internal/load/pkg.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go index 72a3d70607..616adcc57a 100644 --- a/src/cmd/go/internal/load/pkg.go +++ b/src/cmd/go/internal/load/pkg.go @@ -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) -- 2.48.1