]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: remove comparison that is always true
authorZxilly <zxilly@outlook.com>
Sun, 28 Jul 2024 15:08:33 +0000 (15:08 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 29 Jul 2024 14:27:04 +0000 (14:27 +0000)
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 <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>

src/cmd/go/internal/test/test.go

index 0ac56666201109846416802be89d6b9786ca9a8a..ff22e4a457d53043b63fe532a719e935455ff592 100644 (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)