From 506973864af8ef471c48e25be475145e98d283e6 Mon Sep 17 00:00:00 2001 From: Andrew Kerr Date: Thu, 22 Sep 2022 09:47:47 -0400 Subject: [PATCH] Remove double throw --- src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt b/src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt index 5d529d2d..fd445ff9 100644 --- a/src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt +++ b/src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt @@ -263,7 +263,7 @@ internal class SchemaClassScanner( resolverInfosByDataClass[item.clazz] ?: DataClassResolverInfo(item.clazz) } }) - ?: throw throw SchemaClassScannerError("The GraphQL schema type '${item.type.name}' maps to a field of type java.lang.Object however there is no matching entry for this type in the type dictionary. You may need to add this type to the dictionary before building the schema.") + ?: throw SchemaClassScannerError("The GraphQL schema type '${item.type.name}' maps to a field of type java.lang.Object however there is no matching entry for this type in the type dictionary. You may need to add this type to the dictionary before building the schema.") scanResolverInfoForPotentialMatches(item.type, resolverInfo) }