File tree 1 file changed +2
-4
lines changed
src/main/kotlin/graphql/kickstart/tools
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class SchemaParser internal constructor(
74
74
75
75
// Create GraphQL objects
76
76
val inputObjects: MutableList <GraphQLInputObjectType > = mutableListOf ()
77
- schemaDirectives = createDirectives(inputObjects)
77
+ createDirectives(inputObjects)
78
78
inputObjectDefinitions.forEach {
79
79
if (inputObjects.none { io -> io.name == it.name }) {
80
80
inputObjects.add(createInputObject(it, inputObjects, mutableSetOf ()))
@@ -309,7 +309,7 @@ class SchemaParser internal constructor(
309
309
.build()
310
310
}
311
311
312
- private fun createDirectives (inputObjects : MutableList <GraphQLInputObjectType >): Set < GraphQLDirective > {
312
+ private fun createDirectives (inputObjects : MutableList <GraphQLInputObjectType >) {
313
313
schemaDirectives = directiveDefinitions.map { definition ->
314
314
val locations = definition.directiveLocations.map { Introspection .DirectiveLocation .valueOf(it.name) }.toTypedArray()
315
315
@@ -335,8 +335,6 @@ class SchemaParser internal constructor(
335
335
} }
336
336
d.transform { it.replaceArguments(arguments) }
337
337
}.toSet()
338
-
339
- return schemaDirectives
340
338
}
341
339
342
340
private fun createDirectiveArgument (definition : InputValueDefinition , inputObjects : List <GraphQLInputObjectType >): GraphQLArgument {
You can’t perform that action at this time.
0 commit comments