chore: fix lint

This commit is contained in:
tolluset 2024-06-08 02:21:12 +09:00
parent 24ac714e22
commit 52b40620a7

View file

@ -225,9 +225,8 @@ function resolveReporters(reporters: Config['reporter'], rootDir: string): Repor
function resolveWorkes(workers: string) {
const parsedWorkers = parseInt(workers, 10);
if (isNaN(parsedWorkers)) {
if (isNaN(parsedWorkers))
throw new Error(`Workers ${workers} must be a number or percentage.`);
}
return parsedWorkers;
}