Skip to content

Commit 8aa319e

Browse files
committed
More linting fixes.
1 parent bd3b9dd commit 8aa319e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/bindActionCreators.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export default function bindActionCreators(actionCreators, dispatch) {
3030
return bindActionCreator(actionCreators, dispatch);
3131
}
3232

33-
if (typeof actionCreators !== 'object' || actionCreators == null) { // eslint-disable-line no-eq-null
33+
if (typeof actionCreators !== 'object' || actionCreators === null || actionCreators === undefined) { // eslint-disable-line no-eq-null
3434
throw new Error(
35-
`bindActionCreators expected an object or a function, instead received ${actionCreators === null ? "null" : typeof actionCreators}. ` +
35+
`bindActionCreators expected an object or a function, instead received ${actionCreators === null ? 'null' : typeof actionCreators}. ` +
3636
`Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`
3737
);
3838
}

0 commit comments

Comments
 (0)