Skip to content

Commit 46c6b42

Browse files
committed
chore: complete lua doc
1 parent ea49c0c commit 46c6b42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/nvim-tree/explorer/init.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function Explorer:reload(node, git_status)
8585
local cwd = node.link_to or node.absolute_path
8686
local handle = vim.loop.fs_scandir(cwd)
8787
if not handle then
88-
return nil
88+
return
8989
end
9090

9191
local profile = log.profile_start("reload %s", node.absolute_path)
@@ -174,10 +174,10 @@ function Explorer:reload(node, git_status)
174174
local single_child = node:single_child_directory()
175175
if config.renderer.group_empty and node.parent and single_child then
176176
node.group_next = single_child
177-
local nodes = self:reload(single_child, git_status)
178-
node.nodes = nodes or {}
177+
local ns = self:reload(single_child, git_status)
178+
node.nodes = ns or {}
179179
log.profile_end(profile)
180-
return nodes
180+
return ns
181181
end
182182

183183
self.sorters:sort(node.nodes)

0 commit comments

Comments
 (0)