refactor(#2731): resolve warnings
This commit is contained in:
parent
f16575f73c
commit
f534fbc606
@ -50,7 +50,7 @@ end
|
|||||||
---@return boolean|nil
|
---@return boolean|nil
|
||||||
local function remove_dir(cwd)
|
local function remove_dir(cwd)
|
||||||
local handle = vim.loop.fs_scandir(cwd)
|
local handle = vim.loop.fs_scandir(cwd)
|
||||||
if type(handle) == "string" then
|
if type(handle) == "string" or not handle then
|
||||||
notify.error(handle)
|
notify.error(handle)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user