Skip to content

Commit

Permalink
remove check for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius456 committed Jul 19, 2024
1 parent bd1eee4 commit ed019e4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/core/src/tasks/taskFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ export const extractSingleExecutableTask = async (
suitableTasks: RnvTask[],
taskName: string
): Promise<RnvTask | undefined> => {
let hasPlatformAwareTasks = false;
suitableTasks.forEach((v) => {
if (v.platforms !== undefined && v.platforms.length > 1) {
hasPlatformAwareTasks = true;
}
});
if (!hasPlatformAwareTasks && suitableTasks.length === 1) {
if (suitableTasks.length === 1) {
return suitableTasks[0];
} else if (suitableTasks.length === 0) {
return undefined;
Expand Down

0 comments on commit ed019e4

Please sign in to comment.