Skip to content

Commit

Permalink
Remove dead code since args are always present on fields and directiv…
Browse files Browse the repository at this point in the history
…es (#1936)
  • Loading branch information
IvanGoncharov committed Jun 1, 2019
1 parent 2b2b395 commit 1512eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/type/introspection.js
Expand Up @@ -95,7 +95,7 @@ export const __Directive = new GraphQLObjectType({
},
args: {
type: GraphQLNonNull(GraphQLList(GraphQLNonNull(__InputValue))),
resolve: directive => directive.args || [],
resolve: directive => directive.args,
},
}: GraphQLFieldConfigMap<GraphQLDirective, mixed>),
});
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 1512eeb

Please sign in to comment.