File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/kotlin/graphql/kickstart/tools Expand file tree Collapse file tree 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(
7474
7575 // Create GraphQL objects
7676 val inputObjects: MutableList <GraphQLInputObjectType > = mutableListOf ()
77- schemaDirectives = createDirectives(inputObjects)
77+ createDirectives(inputObjects)
7878 inputObjectDefinitions.forEach {
7979 if (inputObjects.none { io -> io.name == it.name }) {
8080 inputObjects.add(createInputObject(it, inputObjects, mutableSetOf ()))
@@ -309,7 +309,7 @@ class SchemaParser internal constructor(
309309 .build()
310310 }
311311
312- private fun createDirectives (inputObjects : MutableList <GraphQLInputObjectType >): Set < GraphQLDirective > {
312+ private fun createDirectives (inputObjects : MutableList <GraphQLInputObjectType >) {
313313 schemaDirectives = directiveDefinitions.map { definition ->
314314 val locations = definition.directiveLocations.map { Introspection .DirectiveLocation .valueOf(it.name) }.toTypedArray()
315315
@@ -335,8 +335,6 @@ class SchemaParser internal constructor(
335335 } }
336336 d.transform { it.replaceArguments(arguments) }
337337 }.toSet()
338-
339- return schemaDirectives
340338 }
341339
342340 private fun createDirectiveArgument (definition : InputValueDefinition , inputObjects : List <GraphQLInputObjectType >): GraphQLArgument {
You can’t perform that action at this time.
0 commit comments