jotpluggler: fix off by one error (#36144)

fix off by one error sometimes causing missed items in datatree
This commit is contained in:
Jimmy
2025-09-12 11:37:00 -10:00
committed by GitHub
parent 42d9bd0516
commit be379e188b
+1 -1
View File
@@ -154,7 +154,7 @@ class DataTree:
for i, part in enumerate(parts):
current_path_prefix = f"{current_path_prefix}/{part}" if current_path_prefix else part
if i < len(parts) - 1:
if i < len(parts):
parent_nodes_to_recheck.add(current_node) # for incremental changes from new data
if part not in current_node.children:
current_node.children[part] = DataTreeNode(name=part, full_path=current_path_prefix, parent=current_node)