Skip to content

Commit b0ed54c

Browse files
committed
style: fix style issues
1 parent 0057fac commit b0ed54c

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

src/combineReducers.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
import Immutable from 'immutable';
22
import {
3-
getUnexpectedInvocationParameterMessage,
4-
validateNextState
3+
getUnexpectedInvocationParameterMessage,
4+
validateNextState
55
} from './utilities';
66

77
export default (reducers: Object): Function => {
88
const reducerKeys = Object.keys(reducers);
99

10-
// eslint-disable-next-line space-infix-ops
10+
// eslint-disable-next-line space-infix-ops
1111
return (inputState: ?Immutable.Map = Immutable.Map(), action: Object): Immutable.Map => {
12-
// eslint-disable-next-line no-process-env
12+
// eslint-disable-next-line no-process-env
1313
if (process.env.NODE_ENV !== 'production') {
1414
const warningMessage = getUnexpectedInvocationParameterMessage(inputState, reducers, action);
1515

1616
if (warningMessage) {
17-
// eslint-disable-next-line no-console
17+
// eslint-disable-next-line no-console
1818
console.error(warningMessage);
1919
}
2020
}
2121

2222
return inputState
23-
.withMutations((temporaryState) => {
24-
reducerKeys.forEach((reducerName) => {
25-
const reducer = reducers[reducerName];
26-
const currentDomainState = temporaryState.get(reducerName);
27-
const nextDomainState = reducer(currentDomainState, action);
23+
.withMutations((temporaryState) => {
24+
reducerKeys.forEach((reducerName) => {
25+
const reducer = reducers[reducerName];
26+
const currentDomainState = temporaryState.get(reducerName);
27+
const nextDomainState = reducer(currentDomainState, action);
2828

29-
validateNextState(nextDomainState, reducerName, action);
29+
validateNextState(nextDomainState, reducerName, action);
3030

31-
temporaryState.set(reducerName, nextDomainState);
32-
});
33-
});
31+
temporaryState.set(reducerName, nextDomainState);
32+
});
33+
});
3434
};
3535
};

src/utilities/getUnexpectedInvocationParameterMessage.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable lodash3/prefer-lodash-method */
2-
31
import Immutable from 'immutable';
42
import getStateName from './getStateName';
53

src/utilities/validateNextState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default (nextState, reducerName: string, action: Object): null => {
2-
// eslint-disable-next-line no-undefined
2+
// eslint-disable-next-line no-undefined
33
if (nextState === undefined) {
44
throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
55
}

0 commit comments

Comments
 (0)