Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetliquid committed Dec 11, 2020
1 parent d5f1b65 commit 473d32f
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 473d32f

Please sign in to comment.