Skip to content

Commit

Permalink
Merge pull request #167 from tekktrik/main
Browse files Browse the repository at this point in the history
Fix pylint errors
  • Loading branch information
jposada202020 authored May 11, 2023
2 parents c6a0f53 + b094348 commit 8cfc4f0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions adafruit_minimqtt/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ def __delitem__(self, key: str) -> None:
node.content = None
except KeyError:
raise KeyError(key) from None
else: # cleanup
for parent, k, node in reversed(lst):
if node.children or node.content is not None:
break
del parent.children[k]
for parent, k, node in reversed(lst):
if node.children or node.content is not None:
break
del parent.children[k]

def iter_match(self, topic: str):
"""Return an iterator on all values associated with filters
Expand Down

0 comments on commit 8cfc4f0

Please sign in to comment.