]> Cypherpunks repositories - gostls13.git/commit
cmd/go: remove unnecessary b.Print setting
authorAustin Clements <austin@google.com>
Thu, 24 Aug 2023 20:48:14 +0000 (16:48 -0400)
committerAustin Clements <austin@google.com>
Mon, 9 Oct 2023 20:51:16 +0000 (20:51 +0000)
commit262b8050daf588cd298527114cb377753f0a2c39
tree4d70ca286cd771dc68418912d94ebf288e8fc3cd
parent8222423e0384cce56de31fe2c38572da0a5c1943
cmd/go: remove unnecessary b.Print setting

The Builder returned by work.NewBuilder is already setup to print to
os.Stderr, so it's not necessary for runRun to set b.Print to a
different function that does exactly the same thing.

This b.Print assignment was introduced in CL 5591045. At the time, the
builder type defaulted to printing to os.Stdout, so this was necessary
to make "go run" print build errors to stderr.

Change-Id: I0c07984616c5efc37ba681f4cf69e83542566bab
Reviewed-on: https://go-review.googlesource.com/c/go/+/522796
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/run/run.go