Skip to content

Commit b506e05

Browse files
committed
Remove redundant condition
1 parent 38d9e07 commit b506e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/tree/modifiers/expand-all.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ local function gen_iterator(should_expand)
6666
end)
6767
:recursor(function(node)
6868
local should_recurse = should_expand(expansion_count - 1, node, populate_node)
69-
return expansion_count < M.MAX_FOLDER_DISCOVERY and (should_recurse and node.open and node.nodes)
69+
return expansion_count < M.MAX_FOLDER_DISCOVERY and should_recurse and node.nodes
7070
end)
7171
:iterate()
7272

0 commit comments

Comments
 (0)