Skip to content

Commit

Permalink
fix: remove unnecessary checks of default_key value
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Apr 25, 2024
1 parent d6e022f commit 8ea902c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions reacton/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1795,8 +1795,6 @@ def _reconsolidate(self, el: Element, default_key: str, parent_key: str):
kwargs = el.kwargs.copy()
key = el._key
if key is None:
if default_key == "/":
default_key = "/"
key = default_key
assert key is not None
logger.debug("Reconsolidate: (%s,%s) %r", parent_key, key, el)
Expand Down Expand Up @@ -2088,8 +2086,6 @@ def reconsolidate_children():
def _remove_element(self, el: Element, default_key: str, parent_key):
key = el._key
if key is None:
if default_key == "/":
default_key = "/"
key = default_key
assert key is not None
assert self.context is not None
Expand Down

0 comments on commit 8ea902c

Please sign in to comment.