Skip to content

Commit 9464cc7

Browse files
committed
fix PR feedback
1 parent 5f227dd commit 9464cc7

File tree

1 file changed

+2
-2
lines changed
  • graphql/src/main/kotlin/nl/nlportal/graphql/customtype

1 file changed

+2
-2
lines changed

graphql/src/main/kotlin/nl/nlportal/graphql/customtype/JSON.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import graphql.schema.CoercingParseLiteralException
3030
import graphql.schema.CoercingSerializeException
3131
import graphql.schema.GraphQLScalarType
3232
import nl.nlportal.core.util.Mapper
33-
import java.util.*
33+
import java.util.Locale
3434

3535
object JSONCoercing : Coercing<ObjectNode, ObjectNode> {
3636
override fun parseValue(
@@ -55,7 +55,7 @@ object JSONCoercing : Coercing<ObjectNode, ObjectNode> {
5555
variables: CoercedVariables,
5656
graphQLContext: GraphQLContext,
5757
locale: Locale,
58-
): ObjectNode? {
58+
): ObjectNode {
5959
val jsonString = (input as? ObjectValue)!!
6060
return runCatching {
6161
parseValue(input, graphQLContext, locale)

0 commit comments

Comments
 (0)