mirror of https://github.com/golang/go.git
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:
parent
0fe775e9f3
commit
f7ec58b2fc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue