Skip to content

Commit

Permalink
Remove unnecessary block function
Browse files Browse the repository at this point in the history
  • Loading branch information
n0900 committed Oct 30, 2023
1 parent 1e3f3a6 commit 58b7bc4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,10 @@ sealed class CoseKeyParams() {
}

override fun toCryptoPublicKey(): CryptoPublicKey? {
return let {
CryptoPublicKey.Rsa(
return CryptoPublicKey.Rsa(
n = n ?: return null,
e = e?.let { bytes -> Int.decodeFromDer(bytes) } ?: return null
)
}
}
}
}

0 comments on commit 58b7bc4

Please sign in to comment.