Skip to content

Commit 6cabf37

Browse files
committed
try removing identical return statement
1 parent 7db3085 commit 6cabf37

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/toolkit/src/matchers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,6 @@ export function isRejectedWithValue<
241241
return action && action.meta && action.meta.rejectedWithValue
242242
}
243243

244-
if (asyncThunks.length === 0) {
245-
return isAllOf(isRejected(...asyncThunks), hasFlag)
246-
}
247-
248244
if (!isAsyncThunkArray(asyncThunks)) {
249245
return isRejectedWithValue()(asyncThunks[0])
250246
}

0 commit comments

Comments
 (0)