fix: Handle nil config
This commit is contained in:
parent
c1a09a7a3d
commit
76c414adbf
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ M.options = {
|
|||
function M.setup(user_options)
|
||||
if user_options and type(user_options) == "table" then
|
||||
for k, v in pairs(user_options) do
|
||||
M.options[k] = v
|
||||
if v ~= nil then
|
||||
M.options[k] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue