X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Futils.ts;h=eb800c4ab50f9d39e2b6fc98ebb4cf39bfc134b5;hb=d91689fda0fa7a85014ac25276cf2cf0a9d81ce2;hp=e08b31aa838537c1ceee37f284ff39ac53960308;hpb=bfc75ccaf49d915d2b7e73c92360787b3245321a;p=poolifier.git diff --git a/src/pools/utils.ts b/src/pools/utils.ts index e08b31aa..eb800c4a 100644 --- a/src/pools/utils.ts +++ b/src/pools/utils.ts @@ -9,13 +9,6 @@ import type { TasksQueueOptions } from './pool' import type { IWorker, MeasurementStatistics } from './worker' export const checkFilePath = (filePath: string): void => { - if ( - filePath == null || - typeof filePath !== 'string' || - (typeof filePath === 'string' && filePath.trim().length === 0) - ) { - throw new Error('Please specify a file with a worker implementation') - } if (!existsSync(filePath)) { throw new Error(`Cannot find the worker file '${filePath}'`) }