fix: resize if size is nil

This commit is contained in:
kiyan
2022-03-06 14:10:56 +01:00
parent c25be06612
commit 5cfe768882

View File

@@ -186,11 +186,7 @@ function M.resize(size)
end
end
if type(size) ~= "number" then
return
end
if size <= 0 then
if type(size) == "number" and size <= 0 then
return
end