From 97d15cf8c57b2218bb53abe5eedf7fa400008c5c Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Sat, 1 Jun 2019 19:22:09 +0300 Subject: [PATCH] Remove dead code since args are always present on fields and directives --- src/type/introspection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/type/introspection.js b/src/type/introspection.js index fe5b68f16a..32ab5aea83 100644 --- a/src/type/introspection.js +++ b/src/type/introspection.js @@ -95,7 +95,7 @@ export const __Directive = new GraphQLObjectType({ }, args: { type: GraphQLNonNull(GraphQLList(GraphQLNonNull(__InputValue))), - resolve: directive => directive.args || [], + resolve: directive => directive.args, }, }: GraphQLFieldConfigMap), }); @@ -303,7 +303,7 @@ export const __Field = new GraphQLObjectType({ }, args: { type: GraphQLNonNull(GraphQLList(GraphQLNonNull(__InputValue))), - resolve: field => field.args || [], + resolve: field => field.args, }, type: { type: GraphQLNonNull(__Type),