Skip to content

Commit cd6a3ee

Browse files
authored
fix: misspelled word (cloudevents#113)
Signed-off-by: Helio Frota <[email protected]>
1 parent 53524ac commit cd6a3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/formats/json/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const {
66

77
const invalidPayloadTypeError =
88
new Error("invalid payload type, allowed are: string or object");
9-
const nullOrIndefinedPayload =
9+
const nullOrUndefinedPayload =
1010
new Error("null or undefined payload");
1111

1212
const asJSON = (v) => (isString(v) ? JSON.parse(v) : v);
@@ -28,7 +28,7 @@ class JSONParser {
2828

2929
return Array.of(payload)
3030

31-
.filter((p) => isDefinedOrThrow(p, nullOrIndefinedPayload))
31+
.filter((p) => isDefinedOrThrow(p, nullOrUndefinedPayload))
3232
.filter((p) => isStringOrObjectOrThrow(p, invalidPayloadTypeError))
3333
.map(asJSON)
3434
.shift();

0 commit comments

Comments
 (0)