Skip to content

Commit a433966

Browse files
committed
Return void
1 parent 4ae6165 commit a433966

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/kotlin/graphql/kickstart/tools/SchemaParser.kt

+2-4
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)