small revert

This commit is contained in:
Bunny67
2021-04-12 20:14:42 +03:00
parent 5c2ac0f61c
commit e7599b2e82
+1 -3
View File
@@ -189,11 +189,9 @@ end
-- @param id The id of the timer, as returned by `:ScheduleTimer` or `:ScheduleRepeatingTimer`
-- @return The time left on the timer.
function AceTimer:TimeLeft(id)
if not id then return end
local timer = activeTimers[id]
if not timer then
return 0
return
else
return timer.ends - GetTime()
end