Skip to content

Commit 955716a

Browse files
committed
No need for else
1 parent 9c662a1 commit 955716a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utilities/astFromValue.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ export function astFromValue(
7979
// only explicit null, not undefined, NaN
8080
if (_value === null) {
8181
return ({ kind: NULL }: NullValue);
82-
} else if (isNullish(_value)) {
82+
}
83+
84+
// other nullish values
85+
if (isNullish(_value)) {
8386
return null;
8487
}
8588

0 commit comments

Comments
 (0)