Skip to content

Commit 06ec2b0

Browse files
WIP
1 parent 32bd22a commit 06ec2b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__tests__/createAction-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('createAction()', () => {
3232
})
3333
.to.throw(
3434
Error,
35-
'Expected payloadCreator to be a function, undefined, or null'
35+
'Expected payloadCreator to be a function, undefined or null'
3636
);
3737
});
3838
});

src/createAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import invariant from 'invariant';
77
export default function createAction(type, payloadCreator = identity, metaCreator) {
88
invariant(
99
isFunction(payloadCreator) || isNull(payloadCreator),
10-
'Expected payloadCreator to be a function, undefined, or null'
10+
'Expected payloadCreator to be a function, undefined or null'
1111
);
1212

1313
const finalPayloadCreator = isNull(payloadCreator)

0 commit comments

Comments
 (0)