Removed odd use of null
This commit is contained in:
		| @ -353,9 +353,7 @@ var WorkerCollection = (function(){ | |||||||
| 		workers.checkForZombies(); | 		workers.checkForZombies(); | ||||||
|  |  | ||||||
| 		// if there are workers being created, stop scale up and down check | 		// if there are workers being created, stop scale up and down check | ||||||
| 		if(workers.currentCreating + workers.length > workers.settings.min) { | 		if(workers.currentCreating + workers.length >= workers.settings.min){ | ||||||
| 			null; |  | ||||||
| 		} else if(workers.currentCreating){ |  | ||||||
| 			return console.log(`Killing balance, workers are being created.`); | 			return console.log(`Killing balance, workers are being created.`); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user