mirror of
https://github.com/nvim-tree/nvim-tree.lua
synced 2024-09-16 14:34:03 +02:00
refactor(#2731): resolve warnings
This commit is contained in:
parent
f16575f73c
commit
f534fbc606
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ end
|
|||
---@return boolean|nil
|
||||
local function remove_dir(cwd)
|
||||
local handle = vim.loop.fs_scandir(cwd)
|
||||
if type(handle) == "string" then
|
||||
if type(handle) == "string" or not handle then
|
||||
notify.error(handle)
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue