Fix linting error

This commit is contained in:
ghostbuster91 2025-08-02 16:18:41 +02:00
parent 160ae4fce6
commit 37b351691c
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ end
---@param expansion_count integer
---@param node Node
---@param should_descend fun(expansion_count: integer, node: DirectoryNode): boolean
---@param should_descend fun(expansion_count: integer, node: Node): boolean
---@return boolean
local function should_expand(expansion_count, node, should_descend)
local dir = node:as(DirectoryNode)
@ -52,7 +52,7 @@ local function should_expand(expansion_count, node, should_descend)
return false
end
if not dir.open and should_descend(expansion_count, dir) then
if not dir.open and should_descend(expansion_count, node) then
core.get_explorer():expand(dir) -- populate node.group_next
if dir.group_next then
return should_expand(expansion_count, dir.group_next, should_descend)
@ -64,7 +64,7 @@ local function should_expand(expansion_count, node, should_descend)
end
---@param should_descend fun(expansion_count: integer, node: DirectoryNode): boolean
---@param should_descend fun(expansion_count: integer, node: Node): boolean
---@return fun(node): any
local function gen_iterator(should_descend)
local expansion_count = 0

View File

@ -188,7 +188,7 @@ Api.tree.search_node = wrap(actions.finders.search_node.fn)
Api.tree.collapse_all = wrap(actions.tree.modifiers.collapse.all)
---@class ApiTreeExpandOpts
---@field expand_until (fun(expansion_count: integer, node: DirectoryNode): boolean)|nil
---@field expand_until (fun(expansion_count: integer, node: Node): boolean)|nil
Api.tree.expand_all = wrap_node(actions.tree.modifiers.expand.all)
Api.tree.toggle_enable_filters = wrap_explorer_member("filters", "toggle")