Skip to content

Commit c7c3d5a

Browse files
committed
feat: variable renaming misc
1 parent 0cd9adb commit c7c3d5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bigtree/tree/helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,12 @@ def get_tree_diff(
491491
moved_to_ind = [name in names_removed for name in names_added]
492492

493493
path_removed_to_name = {
494-
k: "-" if not detail else ("moved from" if v else "removed")
495-
for k, v in zip(paths_removed, moved_from_ind)
494+
path: "-" if not detail else ("moved from" if move_ind else "removed")
495+
for path, move_ind in zip(paths_removed, moved_from_ind)
496496
}
497497
path_added_to_name = {
498-
k: "+" if not detail else ("moved to" if v else "added")
499-
for k, v in zip(paths_added, moved_to_ind)
498+
path: "+" if not detail else ("moved to" if move_ind else "added")
499+
for path, move_ind in zip(paths_added, moved_to_ind)
500500
}
501501

502502
# Check tree attribute difference

0 commit comments

Comments
 (0)