Skip to content

Commit

Permalink
More linting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Sep 11, 2015
1 parent bd3b9dd commit 8aa319e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/bindActionCreators.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export default function bindActionCreators(actionCreators, dispatch) {
return bindActionCreator(actionCreators, dispatch);
}

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

0 comments on commit 8aa319e

Please sign in to comment.