Skip to content

Commit 566a0a6

Browse files
authored
Merge pull request #181 from Pennycook/bugfix/filetree-insert
Fix condition in FileTree insert
2 parents c23c69d + 8b9651d commit 566a0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codebasin/report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def insert(
633633
parent.setmap[ps] += setmap[ps]
634634

635635
# If this name exists, find the node.
636-
if parent is not None and path.name in parent.children:
636+
if path.name in parent.children:
637637
node = parent.children[path.name]
638638

639639
# Otherwise, create the node.

0 commit comments

Comments
 (0)