mirror of https://github.com/golang/go.git
cmd/go: remove meaningless comparison
This commit is contained in:
parent
aec5cc52ad
commit
66c6d71c13
|
|
@ -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