From ea5448814f14a5e946522891e4d14399c1c888d3 Mon Sep 17 00:00:00 2001 From: cui Date: Fri, 10 Apr 2026 23:41:59 +0800 Subject: [PATCH] core/filtermaps: remove dead condition check (#34695) already check on line 40 before. --- core/filtermaps/math_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/filtermaps/math_test.go b/core/filtermaps/math_test.go index a4c1609059..0cd0046a7d 100644 --- a/core/filtermaps/math_test.go +++ b/core/filtermaps/math_test.go @@ -41,9 +41,7 @@ func TestSingleMatch(t *testing.T) { t.Fatalf("Invalid length of matches (got %d, expected 1)", len(matches)) } if matches[0] != lvIndex { - if len(matches) != 1 { - t.Fatalf("Incorrect match returned (got %d, expected %d)", matches[0], lvIndex) - } + t.Fatalf("Incorrect match returned (got %d, expected %d)", matches[0], lvIndex) } } }