fix(util): make sure to always return an icon

This commit is contained in:
Folke Lemaitre 2024-12-01 17:46:22 +01:00
parent 90cfaa2215
commit ca7188c531
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -63,7 +63,7 @@ function M.icon(name, cat)
} }
for _, fn in ipairs(try) do for _, fn in ipairs(try) do
local ret = { pcall(fn) } local ret = { pcall(fn) }
if ret[1] then if ret[1] and ret[2] then
return ret[2], ret[3] return ret[2], ret[3]
end end
end end