Skip to content

Commit

Permalink
molly: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed May 27, 2024
1 parent 1207492 commit 74585e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions molly/gen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ methods.stagger = stagger
-- @function time_limit
local time_limit = (function(fn)
return function(self, arg1)
return fn(arg1, self.gen, self.param, self.state)
return fn(arg1, self.gen, self.param, self.state)
end
end)(function(timeout, gen, param, state)
if type(timeout) ~= 'number' or timeout == 0 then
Expand All @@ -602,7 +602,7 @@ end)(function(timeout, gen, param, state)
time_is_exceed = get_time() - start_time >= duration
return gen_x(param_x, state_x)
end
return nil_gen(nil, nil)
return nil_gen(nil, nil)
end, {gen, param, timeout, 0}, state)
end)
methods.time_limit = time_limit
Expand Down
6 changes: 3 additions & 3 deletions molly/tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ end
local function counter()
local i = 0
return function()
i = i + 1
return i
end
i = i + 1
return i
end
end

local c = counter()
Expand Down

0 comments on commit 74585e1

Please sign in to comment.