Skip to content

Commit

Permalink
Code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed May 17, 2023
1 parent e381c26 commit abbffbf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/textual/widgets/_directory_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,11 @@ async def _loader(self) -> None:
# This particular worker failed to start. We don't know the
# reason so let's no-op that (for now anyway).
pass
# We're still here and we have directory content, get it into
# the tree.
if content:
self._populate_node(node, content)
else:
# We're still here and we have directory content, get it into
# the tree.
if content:
self._populate_node(node, content)
# Mark this iteration as done.
self._load_queue.task_done()

Expand Down

0 comments on commit abbffbf

Please sign in to comment.