refactor(#2731): resolve warnings

This commit is contained in:
Alexander Courtis 2024-05-26 15:54:05 +10:00
parent f16575f73c
commit f534fbc606

View file

@ -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