fix: resize if size is nil
This commit is contained in:
@@ -186,11 +186,7 @@ function M.resize(size)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if type(size) ~= "number" then
|
if type(size) == "number" and size <= 0 then
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if size <= 0 then
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user