Skip to content

Commit f3f5a78

Browse files
committed
remove dead condition check
1 parent 37e88b5 commit f3f5a78

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

core/filtermaps/math_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ func TestSingleMatch(t *testing.T) {
4141
t.Fatalf("Invalid length of matches (got %d, expected 1)", len(matches))
4242
}
4343
if matches[0] != lvIndex {
44-
if len(matches) != 1 {
45-
t.Fatalf("Incorrect match returned (got %d, expected %d)", matches[0], lvIndex)
46-
}
44+
t.Fatalf("Incorrect match returned (got %d, expected %d)", matches[0], lvIndex)
4745
}
4846
}
4947
}

0 commit comments

Comments
 (0)