core/filtermaps: remove dead condition check (#34695)

already check on line 40 before.
This commit is contained in:
cui 2026-04-10 23:41:59 +08:00 committed by GitHub
parent 58557cb463
commit ea5448814f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}
}
}