Skip to content

Commit

Permalink
[CR] No need to check for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phallguy committed Jan 6, 2016
1 parent 9e80919 commit 4396dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/utils/combineReducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ export default function combineReducers(reducers) {
throw new Error(getErrorMessage(key, action));
}

if( oldState != newState ) {
finalState = finalState.set( key, newState );
}
finalState = finalState.set( key, newState );
});

if ((
Expand Down
2 changes: 1 addition & 1 deletion test/utils/combineReducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Utils', () => {
});

it('returns the initial state when nothing changes', () => {
const s1 = reducer(initialState, { type: 'increment'});
const s1 = reducer(initialState, { type: 'increment' });
const s2 = reducer(s1);
expect(s1).toBe(s2);
})
Expand Down

0 comments on commit 4396dae

Please sign in to comment.