summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/index.ts b/src/index.ts
index 4dda0e9df7..6e9341f910 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -4,9 +4,6 @@
Error.stackTraceLimit = Infinity;
-/**
- * Module dependencies
- */
import * as fs from 'fs';
import * as os from 'os';
import * as cluster from 'cluster';
@@ -141,9 +138,7 @@ function spawnWorkers(onComplete: any) {
}
// On all workers started
- progress.on('complete', () => {
- onComplete();
- });
+ progress.on('complete', onComplete);
}
// Listen new workers