mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Code tidy
As per https://github.com/Textualize/textual/pull/2545#discussion_r1196591147
This commit is contained in:
@@ -341,10 +341,11 @@ class DirectoryTree(Tree[DirEntry]):
|
||||
# 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user