]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: remove ineffective else branch in test
authorOleksandr Redko <oleksandr.red+github@gmail.com>
Wed, 7 Aug 2024 17:14:30 +0000 (20:14 +0300)
committerGopher Robot <gobot@golang.org>
Thu, 8 Aug 2024 23:21:43 +0000 (23:21 +0000)
Change-Id: I8e47266e8b3fb2f2ae07455b317de58dfcdd8016
Reviewed-on: https://go-review.googlesource.com/c/go/+/603536
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/fmt/fmt_test.go

index 0f4a35dd6fe54095fdf91b889a5dcbec74475231..b7f9ccd494d099d2246fc878569f173d61658fc7 100644 (file)
@@ -1230,7 +1230,6 @@ func TestReorder(t *testing.T) {
                s := Sprintf(tt.fmt, tt.val...)
                if s != tt.out {
                        t.Errorf("Sprintf(%q, %v) = <%s> want <%s>", tt.fmt, tt.val, s, tt.out)
-               } else {
                }
        }
 }