Skip to content

Commit 0d09fb8

Browse files
authored
valueFromAST: use nullish to simplify check (graphql#4573)
1 parent de614b1 commit 0d09fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities/valueFromAST.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,6 @@ function isMissingVariable(
172172
): boolean {
173173
return (
174174
valueNode.kind === Kind.VARIABLE &&
175-
(variables == null || variables[valueNode.name.value] === undefined)
175+
variables?.[valueNode.name.value] === undefined
176176
);
177177
}

0 commit comments

Comments
 (0)