From a4d7ba31729428008eeded38d40fb9607ede509f 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 f9d60f00c8..d8d03f747f 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(); }); }