Skip to content

Commit

Permalink
valueFromAST: drop unnecessary 'void' since mixed already includes …
Browse files Browse the repository at this point in the history
…it (#3122)
  • Loading branch information
IvanGoncharov committed May 22, 2021
1 parent b4271c1 commit 4b1f920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/valueFromAST.js
Expand Up @@ -38,7 +38,7 @@ export function valueFromAST(
valueNode: ?ValueNode,
type: GraphQLInputType,
variables?: ?ObjMap<mixed>,
): mixed | void {
): mixed {
if (!valueNode) {
// When there is no node, then there is also no value.
// Importantly, this is different from returning the value null.
Expand Down

0 comments on commit 4b1f920

Please sign in to comment.