From 8ea902c5ec0c91d14944ec99ddeaca177bd3c43f Mon Sep 17 00:00:00 2001 From: Iisakki Rotko Date: Thu, 25 Apr 2024 13:36:34 +0200 Subject: [PATCH] fix: remove unnecessary checks of default_key value --- reacton/core.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/reacton/core.py b/reacton/core.py index 496b494..b615a8b 100644 --- a/reacton/core.py +++ b/reacton/core.py @@ -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) @@ -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