summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorkie Liu <yorkiefixer@gmail.com>2018-06-01 01:55:53 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-05-31 23:39:44 +0200
commit38a2c042b61a448c1d4f7c0085d1eee907a0249b (patch)
treefee2369c71c3093e89f0177e26a160bf87c19668
parent9cf5ecab022ff30e5b489e160371a6ed03a8b307 (diff)
fix nits
-rw-r--r--timers.go1
-rw-r--r--timers.ts3
2 files changed, 1 insertions, 3 deletions
diff --git a/timers.go b/timers.go
index 231d34f14..dd262e7d9 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 259da05ff..d142ba76b 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
});
}
-