Skip to content

Commit 37b3516

Browse files
committed
Fix linting error
1 parent 160ae4f commit 37b3516

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ end
4444

4545
---@param expansion_count integer
4646
---@param node Node
47-
---@param should_descend fun(expansion_count: integer, node: DirectoryNode): boolean
47+
---@param should_descend fun(expansion_count: integer, node: Node): boolean
4848
---@return boolean
4949
local function should_expand(expansion_count, node, should_descend)
5050
local dir = node:as(DirectoryNode)
5151
if not dir then
5252
return false
5353
end
5454

55-
if not dir.open and should_descend(expansion_count, dir) then
55+
if not dir.open and should_descend(expansion_count, node) then
5656
core.get_explorer():expand(dir) -- populate node.group_next
5757
if dir.group_next then
5858
return should_expand(expansion_count, dir.group_next, should_descend)
@@ -64,7 +64,7 @@ local function should_expand(expansion_count, node, should_descend)
6464
end
6565

6666

67-
---@param should_descend fun(expansion_count: integer, node: DirectoryNode): boolean
67+
---@param should_descend fun(expansion_count: integer, node: Node): boolean
6868
---@return fun(node): any
6969
local function gen_iterator(should_descend)
7070
local expansion_count = 0

lua/nvim-tree/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Api.tree.search_node = wrap(actions.finders.search_node.fn)
188188
Api.tree.collapse_all = wrap(actions.tree.modifiers.collapse.all)
189189

190190
---@class ApiTreeExpandOpts
191-
---@field expand_until (fun(expansion_count: integer, node: DirectoryNode): boolean)|nil
191+
---@field expand_until (fun(expansion_count: integer, node: Node): boolean)|nil
192192

193193
Api.tree.expand_all = wrap_node(actions.tree.modifiers.expand.all)
194194
Api.tree.toggle_enable_filters = wrap_explorer_member("filters", "toggle")

0 commit comments

Comments
 (0)