Skip to content

Commit

Permalink
CBOR: remove bogur runCatching
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Jul 8, 2024
1 parent ac17821 commit a1a7dad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal const val SINGLE_PRECISION_NORMALIZE_BASE = 0.5f

@OptIn(ExperimentalSerializationApi::class)
internal fun SerialDescriptor.isByteString(index: Int): Boolean {
return kotlin.runCatching { getElementAnnotations(index).find { it is ByteString } != null }.getOrDefault(false)
return getElementAnnotations(index).find { it is ByteString } != null
}


Expand Down

0 comments on commit a1a7dad

Please sign in to comment.