Skip to content

Commit 387bfe4

Browse files
zthcristianoc
authored andcommitted
pull latest master
1 parent 5084445 commit 387bfe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests/src/json_decoders.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function decodeUser(json) {
4141
}
4242
let email = json.email;
4343
let tmp;
44-
tmp = email !== undefined && !(email === null || typeof email !== "string") ? email : undefined;
44+
tmp = typeof email === "string" ? email : undefined;
4545
return {
4646
id: match,
4747
name: match$1,

0 commit comments

Comments
 (0)