From 44a5d732a3aa890ffc106153ab0fdb39462bf075 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 23 Apr 2017 15:49:17 +0900 Subject: [PATCH] Refactoring --- src/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4dda0e9df..6e9341f91 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