Skip to content

Commit

Permalink
remove useless line
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuckame committed Apr 10, 2024
1 parent ebf6cc1 commit 98cc0ae
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ class MapDecoder(
override fun decodeBoolean(): Boolean {
return when (val v = keyOrValue()) {
is Boolean -> v
is String -> v.toBooleanStrict()
is CharSequence -> v.toString().toBooleanStrict()
null -> throw SerializationException("Cannot decode <null> as a Boolean")
else -> throw SerializationException("Unsupported type for Boolean. Actual: ${v::class.qualifiedName}")
Expand Down

0 comments on commit 98cc0ae

Please sign in to comment.