From 38a2c042b61a448c1d4f7c0085d1eee907a0249b Mon Sep 17 00:00:00 2001 From: Yorkie Liu Date: Fri, 1 Jun 2018 01:55:53 +0800 Subject: [PATCH] fix nits --- timers.go | 1 - timers.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/timers.go b/timers.go index 231d34f14d219c..dd262e7d9c37f3 100644 --- a/timers.go +++ b/timers.go @@ -31,7 +31,6 @@ func InitTimers() { Duration: msg.TimerStartDuration, Cleared: false, } - // If this parameter is less than 10, a value of 10 is used if t.Duration < 10 { t.Duration = 10 } diff --git a/timers.ts b/timers.ts index 259da05ff7fb50..d142ba76b17116 100644 --- a/timers.ts +++ b/timers.ts @@ -78,7 +78,7 @@ export function setInterval( // tslint:disable-next-line:no-any ...args: any[] ): number { - return setTimer(cb, duration, true, args); + return setTimer(cb, repeat, true, args); } export function clearTimer(id: number) { @@ -87,4 +87,3 @@ export function clearTimer(id: number) { timerClearId: id }); } -