Skip to content

Commit cc25680

Browse files
committed
Fix linter errors
1 parent c4777ab commit cc25680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343
---@param expansion_count integer
4444
---@param node Node
4545
---@return boolean
46-
local function descend_until_empty(_, node)
46+
local function descend_until_empty(expansion_count, node)
4747
local dir = node:as(DirectoryNode)
4848
if not dir then
4949
return false
@@ -65,7 +65,7 @@ local function should_expand(expansion_count, node, should_descend)
6565

6666
if not dir.open and should_descend(expansion_count, node) then
6767
if #node.nodes == 0 then
68-
core.get_explorer():expand(node) -- populate node.group_next
68+
core.get_explorer():expand(dir) -- populate node.group_next
6969
end
7070

7171
if dir.group_next then

0 commit comments

Comments
 (0)