Skip to content

Commit f534fbc

Browse files
committed
refactor(#2731): resolve warnings
1 parent f16575f commit f534fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/fs/remove-file.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
---@return boolean|nil
5151
local function remove_dir(cwd)
5252
local handle = vim.loop.fs_scandir(cwd)
53-
if type(handle) == "string" then
53+
if type(handle) == "string" or not handle then
5454
notify.error(handle)
5555
return
5656
end

0 commit comments

Comments
 (0)