From: Zxilly Date: Sun, 28 Jul 2024 15:08:33 +0000 (+0000) Subject: cmd/go: remove comparison that is always true X-Git-Tag: go1.24rc1~1369 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f7ec58b2fcf0677678aac8f939b055c6e4ef8c7d;p=gostls13.git cmd/go: remove comparison that is always true Change-Id: Ia77769e03ee040451c044afb332ae4efae3065b9 GitHub-Last-Rev: 66c6d71c1308a86b1bf770f06a8b412f72a00b4f GitHub-Pull-Request: golang/go#68623 Reviewed-on: https://go-review.googlesource.com/c/go/+/601615 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI --- diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index 0ac5666620..ff22e4a457 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -569,7 +569,7 @@ func (f *testVFlag) Set(arg string) error { } if arg == "test2json" { f.on = true - f.json = arg == "test2json" + f.json = true return nil } return fmt.Errorf("invalid flag -test.v=%s", arg)