cmd/go: remove comparison that is always true

Change-Id: Ia77769e03ee040451c044afb332ae4efae3065b9
GitHub-Last-Rev: 66c6d71c13
GitHub-Pull-Request: golang/go#68623
Reviewed-on: https://go-review.googlesource.com/c/go/+/601615
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Zxilly 2024-07-28 15:08:33 +00:00 committed by Gopher Robot
parent 0fe775e9f3
commit f7ec58b2fc
1 changed files with 1 additions and 1 deletions

View File

@ -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)