From e536fb2f72e4883979b451b60b12c44f5f94313c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 18 Jul 2022 18:30:53 +0200 Subject: replace all var with let (reduces warnings) --- bundle/src/start.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundle/src/start.ts') diff --git a/bundle/src/start.ts b/bundle/src/start.ts index de3b5848..a20581c3 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -9,7 +9,7 @@ config(); import { execSync } from "child_process"; // TODO: add socket event transmission -var cores = 1; +let cores = 1; try { cores = Number(process.env.THREADS) || os.cpus().length; } catch { -- cgit 1.5.1