From f3f5a78a906f8806d5ef293a2a606f59b8a8b230 Mon Sep 17 00:00:00 2001 From: ucwong Date: Mon, 13 Apr 2026 08:58:59 +0000 Subject: [PATCH] remove dead condition check --- 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 00ea07f965..653a8afcc3 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) } } }