From 28a149d5ea939aa0af27992e065a3f878c6eb077 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Mon, 11 Dec 2023 15:41:50 +0200 Subject: [PATCH] fixup! Update timers/timers.go --- timers/timers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timers/timers.go b/timers/timers.go index be81146..f49aeaf 100644 --- a/timers/timers.go +++ b/timers/timers.go @@ -119,8 +119,8 @@ func (e *Timers) timerInitialization(callback goja.Callable, timeout float64, ar } task := func() error { - // Specification 8.1: If id does not exist in global's map of active timers, then abort these steps. - if _, exist := e.timers[id]; !exist + // Specification 8.1: If id does not exist in global's map of active timers, then abort these steps. + if _, exist := e.timers[id]; !exist { return nil }