refactor(#2731): resolve warnings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user