You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/copas/timer.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ do
106
106
-- `opts.params` (optional) this value will be passed to the timer callback, `opts.initial_delay` (optional) the first delay to use, defaults to `delay`.
107
107
-- @return timer object, or throws an error on bad input
108
108
functiontimer.new(opts)
109
-
assert(opts.delayor-1>=0, "delay must be greater than or equal to 0")
109
+
assert((opts.delayor-1)>=0, "delay must be greater than or equal to 0")
110
110
assert(type(opts.callback) =="function", "expected callback to be a function")
0 commit comments