Skip to content

Commit

Permalink
Linted per pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent c6a0f53 commit b094348
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 b094348

Please sign in to comment.