Skip to content

Commit c262fad

Browse files
committed
chore(timer): improve readability
1 parent f964534 commit c262fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/copas/timer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ do
106106
-- `opts.params` (optional) this value will be passed to the timer callback, `opts.initial_delay` (optional) the first delay to use, defaults to `delay`.
107107
-- @return timer object, or throws an error on bad input
108108
function timer.new(opts)
109-
assert(opts.delay or -1 >= 0, "delay must be greater than or equal to 0")
109+
assert((opts.delay or -1) >= 0, "delay must be greater than or equal to 0")
110110
assert(type(opts.callback) == "function", "expected callback to be a function")
111111

112112
local callback = function(timer_obj, params)

0 commit comments

Comments
 (0)