Skip to content

Commit

Permalink
Remove unnecessary enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmezzetti committed Feb 13, 2024
1 parent d1e68bd commit bd6be79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grandcypher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,7 @@ def _matches_iter(self, motif):

# Single match clause iterator
if iterators and len(iterators) == 1:
for x, match in enumerate(iterators[0]):
yield match
yield from iterators[0]

# Multi match clause, requires a cartesian join
else:
Expand Down

0 comments on commit bd6be79

Please sign in to comment.