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

@@ -46,8 +46,7 @@ function M.fn(keep_buffers)
end
end)
:recursor(function(n)
n = n and n:as(DirectoryNode)
return n and (n.group_next and { n.group_next } or n.nodes)
return n.group_next and { n.group_next } or n.nodes
end)
:iterate()