Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Zughy committed Aug 30, 2024
1 parent e1ac569 commit d5da755
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions builtin/common/after.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,8 @@ function core.after(after, func, ...)
get_elapsed_time = function(self)
if self.expired then
return after
else
if self.expiring_time then
return time - self.start_time
end
elseif self.expiring_time then
return time - self.start_time
end
end
}
Expand Down

0 comments on commit d5da755

Please sign in to comment.