Skip to content

Commit

Permalink
Remove unnecessary condition (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetliquid committed Apr 1, 2021
1 parent 2406979 commit 37d22c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/createSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ export function createSlice<
actionMatchers = [],
defaultCaseReducer = undefined
] =
typeof options.extraReducers === 'undefined'
? []
: typeof options.extraReducers === 'function'
typeof options.extraReducers === 'function'
? executeReducerBuilderCallback(options.extraReducers)
: [options.extraReducers]

Expand Down

0 comments on commit 37d22c4

Please sign in to comment.