From e7599b2e82c1a993af70e9e454d47bfcd49c85d4 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Mon, 12 Apr 2021 20:14:42 +0300 Subject: [PATCH] small revert --- WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua b/WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua index 96c9374..5f56dde 100644 --- a/WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua +++ b/WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua @@ -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