Skip to content

Commit

Permalink
Fix create_delay erroring when negative values are passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
TheScabbage committed Jun 2, 2024
1 parent 06bb87d commit e54f3cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/cinnamon/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ local create_delay = function(delay_length)
return
end
delay_length = math.floor(delay_length)
if delay_length == 0 then

if delay_length <= 0 then
delay_length = 1
end

Expand Down

0 comments on commit e54f3cb

Please sign in to comment.