mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix nits
This commit is contained in:
parent
9cf5ecab02
commit
38a2c042b6
2 changed files with 1 additions and 3 deletions
|
@ -31,7 +31,6 @@ func InitTimers() {
|
||||||
Duration: msg.TimerStartDuration,
|
Duration: msg.TimerStartDuration,
|
||||||
Cleared: false,
|
Cleared: false,
|
||||||
}
|
}
|
||||||
// If this parameter is less than 10, a value of 10 is used
|
|
||||||
if t.Duration < 10 {
|
if t.Duration < 10 {
|
||||||
t.Duration = 10
|
t.Duration = 10
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ export function setInterval(
|
||||||
// tslint:disable-next-line:no-any
|
// tslint:disable-next-line:no-any
|
||||||
...args: any[]
|
...args: any[]
|
||||||
): number {
|
): number {
|
||||||
return setTimer(cb, duration, true, args);
|
return setTimer(cb, repeat, true, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function clearTimer(id: number) {
|
export function clearTimer(id: number) {
|
||||||
|
@ -87,4 +87,3 @@ export function clearTimer(id: number) {
|
||||||
timerClearId: id
|
timerClearId: id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue