From 8b2f53e3ed810a0539f76feb993f0044bc8c0f38 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 15 Oct 2017 19:28:35 +0200 Subject: fix tslint warnings --- src/timer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/timer.ts') diff --git a/src/timer.ts b/src/timer.ts index 289b46f16..9439b7199 100644 --- a/src/timer.ts +++ b/src/timer.ts @@ -79,7 +79,9 @@ export function after(delayMs: number, callback: () => void): TimerHandle { const nullTimerHandle = { clear() { - } + // do nothing + return; + }, }; /** @@ -109,7 +111,7 @@ export class TimerGroup { return nullTimerHandle; } const h = after(delayMs, callback); - let myId = this.idGen++; + const myId = this.idGen++; this.timerMap[myId] = h; const tm = this.timerMap; @@ -128,7 +130,7 @@ export class TimerGroup { return nullTimerHandle; } const h = every(delayMs, callback); - let myId = this.idGen++; + const myId = this.idGen++; this.timerMap[myId] = h; const tm = this.timerMap; -- cgit v1.2.3