cmd/go: remove meaningless comparison

This commit is contained in:
Zxilly 2024-07-28 20:58:01 +08:00
parent aec5cc52ad
commit 66c6d71c13
No known key found for this signature in database
GPG Key ID: 47AB1DEC841BC6A2
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)