Skip to content

Commit b931598

Browse files
authored
Remove redundant toString() (#2790)
The corresponding checker may be promoted to a default one, resulting in a warning in this place. See: https://youtrack.jetbrains.com/issue/KT-69938
1 parent ffa4c3b commit b931598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formats/json/jsMain/src/kotlinx/serialization/json/internal/DynamicDecoders.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private class DynamicMapInput(
248248
if (isKey) {
249249
val value = decodeTaggedValue(tag)
250250
if (value !is String) return decode(tag)
251-
return value.toString().cast() ?: throwIllegalKeyType(tag, value, type)
251+
return value.cast() ?: throwIllegalKeyType(tag, value, type)
252252
}
253253
return decode(tag)
254254
}

0 commit comments

Comments
 (0)