From a3dd06c702e170dcaee0caeeb0be44a8bd7ca351 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Tue, 3 Jan 2017 05:22:25 +0900 Subject: [PATCH] :sparkles: --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f9d60f00c..d8d03f747 100644 --- a/src/index.ts +++ b/src/index.ts @@ -167,7 +167,7 @@ async function init(): Promise { return warn ? InitResult.Warn : InitResult.Success; } -function spawnWorkers(callback: any): void { +function spawnWorkers(onComplete: any): void { // Count the machine's CPUs const cpuCount = os.cpus().length; @@ -185,7 +185,7 @@ function spawnWorkers(callback: any): void { // On all workers started progress.on('complete', () => { - callback(); + onComplete(); }); }