Skip to content

Commit

Permalink
Remove unnecessary empty tree check in outlineexplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
remisalmon committed Nov 1, 2023
1 parent d17524f commit c360651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/plugins/outlineexplorer/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def update_tree(self, items, editor):
if not must_update:
# Compare with current tree to check if it's necessary to update
# it.
if tree and tree == current_tree:
if tree == current_tree:
logger.debug(
f"Current and new trees for file {editor.fname} are the "
f"same, so no update is necessary"
Expand Down

0 comments on commit c360651

Please sign in to comment.