Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkie authored and ry committed May 31, 2018
1 parent 9cf5eca commit 38a2c04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion timers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions timers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -87,4 +87,3 @@ export function clearTimer(id: number) {
timerClearId: id
});
}

0 comments on commit 38a2c04

Please sign in to comment.