Skip to content

Commit

Permalink
Remove redundant toString() (#2790)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lunakoly authored Aug 21, 2024
1 parent ffa4c3b commit b931598
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private class DynamicMapInput(
if (isKey) {
val value = decodeTaggedValue(tag)
if (value !is String) return decode(tag)
return value.toString().cast() ?: throwIllegalKeyType(tag, value, type)
return value.cast() ?: throwIllegalKeyType(tag, value, type)
}
return decode(tag)
}
Expand Down

0 comments on commit b931598

Please sign in to comment.