lib/utils/createforkpool.js
Function createForkPool
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function createForkPool( childPath ) {
const forkPoolFactory = {
create() {
return new Promise( resolve => {
resolve( childProcess.fork( childPath ) );