Skip to content

Commit

Permalink
VariablesAreInputTypesRule: remove incorrect return type (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Feb 21, 2021
1 parent d0eae6f commit 5043f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation/rules/VariablesAreInputTypesRule.js
Expand Up @@ -20,7 +20,7 @@ export function VariablesAreInputTypesRule(
context: ValidationContext,
): ASTVisitor {
return {
VariableDefinition(node: VariableDefinitionNode): ?GraphQLError {
VariableDefinition(node: VariableDefinitionNode) {
const type = typeFromAST(context.getSchema(), node.type);

if (type && !isInputType(type)) {
Expand Down

0 comments on commit 5043f75

Please sign in to comment.