Skip to content

Commit 64a9a01

Browse files
committed
Revert "Add missing if idx < 0"
This reverts commit a23c08b.
1 parent a59d1f4 commit 64a9a01

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

aikido_zen/helpers/ip_matcher/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ def has(self, network):
2727
if not net or not net.is_valid():
2828
return False
2929
idx = binary_search_for_insertion_index(net, self.sorted)
30-
if idx < 0:
31-
return False
3230
if idx < len(self.sorted) and self.sorted[idx].contains(net):
3331
return True
3432
if idx - 1 >= 0 and self.sorted[idx - 1].contains(net):

0 commit comments

Comments
 (0)