Skip to content

Commit

Permalink
chore(core): combine identical conditional expressions (#9136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wscats committed Mar 14, 2022
1 parent db93879 commit 03e9015
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/workspace/src/tasks-runner/default-tasks-runner.ts
Expand Up @@ -42,11 +42,10 @@ export const defaultTasksRunner: TasksRunner<
(options as any)['parallel'] = 1;
} else if (
(options as any)['parallel'] === 'true' ||
(options as any)['parallel'] === true
(options as any)['parallel'] === true ||
(options as any)['parallel'] === undefined
) {
(options as any)['parallel'] = Number((options as any)['maxParallel'] || 3);
} else if (options.parallel === undefined) {
options.parallel = Number((options as any)['maxParallel'] || 3);
}

options.lifeCycle.startCommand();
Expand Down

0 comments on commit 03e9015

Please sign in to comment.