diff --git a/src/utilities/buildASTSchema.js b/src/utilities/buildASTSchema.js index 3ac1350b51..a4617efef0 100644 --- a/src/utilities/buildASTSchema.js +++ b/src/utilities/buildASTSchema.js @@ -181,8 +181,7 @@ export function buildASTSchema( schemaBody.subscription = produceTypeDef(astMap[subscriptionTypeName]); } - var schema = new GraphQLSchema(schemaBody); - return schema; + return new GraphQLSchema(schemaBody); function makeSchemaDef(def) { if (isNullish(def)) {