chore: resolve undefined-field

This commit is contained in:
Alexander Courtis
2024-10-26 15:48:57 +11:00
parent 009b2c996e
commit 622a8d1e3d
4 changed files with 18 additions and 22 deletions

View File

@@ -60,8 +60,7 @@ local function gen_iterator()
end
end)
:recursor(function(node)
node = node and node:as(DirectoryNode)
return expansion_count < M.MAX_FOLDER_DISCOVERY and node and (node.group_next and { node.group_next } or (node.open and node.nodes))
return expansion_count < M.MAX_FOLDER_DISCOVERY and (node.group_next and { node.group_next } or (node.open and node.nodes))
end)
:iterate()