X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Futils.ts;h=eb800c4ab50f9d39e2b6fc98ebb4cf39bfc134b5;hb=fa548cda5120ac0708d82f37cd0ce1260d7f96c1;hp=e08b31aa838537c1ceee37f284ff39ac53960308;hpb=8bb271861d8632c109fb0293f2a6f43bd5e3bea6;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}'`) }