From 4c9c8852c7034720aaf17f5b7f88501bb687a03a Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Fri, 25 Oct 2024 12:39:39 +1100 Subject: [PATCH] post merge tidy --- lua/nvim-tree/actions/finders/find-file.lua | 1 - lua/nvim-tree/actions/moves/item.lua | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/nvim-tree/actions/finders/find-file.lua b/lua/nvim-tree/actions/finders/find-file.lua index 34a8ee90..55e2f23d 100644 --- a/lua/nvim-tree/actions/finders/find-file.lua +++ b/lua/nvim-tree/actions/finders/find-file.lua @@ -45,7 +45,6 @@ function M.fn(path) return node.absolute_path == path_real or node.link_to == path_real end) :applier(function(node) - ---@cast node DirectoryNode local incremented_line = false if not node.group_next then line = line + 1 diff --git a/lua/nvim-tree/actions/moves/item.lua b/lua/nvim-tree/actions/moves/item.lua index 1cc6a3e5..4390fa47 100644 --- a/lua/nvim-tree/actions/moves/item.lua +++ b/lua/nvim-tree/actions/moves/item.lua @@ -74,8 +74,7 @@ end ---@param node DirectoryNode local function expand_node(node) - if node:is(DirectoryNode) and not node.open then - ---@cast node DirectoryNode + if not node.open then -- Expand the node. -- Should never collapse since we checked open. node:expand_or_collapse(false)