Skip to content

Commit

Permalink
Cleanup: Remove unnecessary variable capture
Browse files Browse the repository at this point in the history
  • Loading branch information
darronschall committed Nov 24, 2024
1 parent 4de71a2 commit a7989b4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ internal object AnySerializer : KSerializer<Any?> {
encoder.encodeSerializableValue(delegateSerializer, value.toJsonElement())
}

override fun deserialize(decoder: Decoder): Any? {
val jsonElement = decoder.decodeSerializableValue(delegateSerializer)
return jsonElement.toAnyOrNull()
}
override fun deserialize(decoder: Decoder): Any? = decoder.decodeSerializableValue(delegateSerializer).toAnyOrNull()
}

//
Expand Down

0 comments on commit a7989b4

Please sign in to comment.