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(); }); }