From 2789b6b2e71cc86beb61d0e3b4d2cb172c8e3dfe Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Tue, 12 May 2020 00:21:24 +0200 Subject: [PATCH] Remove unused appInitTime --- mod.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod.ts b/mod.ts index bd50a6a..d2347f9 100644 --- a/mod.ts +++ b/mod.ts @@ -4,11 +4,9 @@ function startProcess(args: string[] = []): Deno.Process { const throttle = 500; let app: Deno.Process = startProcess(Deno.args); -let appInitTime: number = Date.now(); let timeout: number|null = null; function runApp() { - appInitTime = Date.now(); app && app.close(); app = startProcess(Deno.args); } @@ -20,4 +18,4 @@ for await (const event of Deno.watchFs('.')) { if (timeout) clearTimeout(timeout); timeout = setTimeout(runApp, throttle); } -} \ No newline at end of file +}