Skip to content

Commit

Permalink
remove unused check
Browse files Browse the repository at this point in the history
we return early above if this is the case
  • Loading branch information
SimenB committed Oct 17, 2021
1 parent ab67dab commit c82f084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/defaultResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function createPackageFilter(

return {
...filteredPkg,
main: filteredPkg.main ?? attemptExportsFallback(filteredPkg),
main: attemptExportsFallback(filteredPkg),
};
};
}

0 comments on commit c82f084

Please sign in to comment.