]> Cypherpunks repositories - gostls13.git/commit
cmd/gofmt: apply a correct suggestion by gopls
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 8 Apr 2023 21:52:21 +0000 (22:52 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 13 Apr 2023 15:25:51 +0000 (15:25 +0000)
commit594d67b54095ea63883e2c0dbb3639a9f86f115a
tree457d608bda97c2abd65121839cdcd8aa7fcfd244
parent45c0a7f27ea5e3556009764939aa8a491a8d1045
cmd/gofmt: apply a correct suggestion by gopls

I wrote this code a couple of years back,
and it's unnecessarily verbose for sure.

Change-Id: I684376bf81a995594d90e4faf4deaa2cf51181c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/483296
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/gofmt/gofmt.go