Skip to content

Commit bbb21a6

Browse files
authored
fix: removed redundant check for NaN in parseShardPair (#15742)
1 parent 4ccd12a commit bbb21a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/jest-config/src/parseShardPair.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export const parseShardPair = (pair: string): ShardPair => {
1313
const shardPair = pair
1414
.split('/')
1515
.filter(d => /^\d+$/.test(d))
16-
.map(d => Number.parseInt(d, 10))
17-
.filter(shard => !Number.isNaN(shard));
16+
.map(d => Number.parseInt(d, 10));
1817

1918
const [shardIndex, shardCount] = shardPair;
2019

0 commit comments

Comments
 (0)