Let variable be "val" if possible.

This commit is contained in:
Tobias Preuss 2020-06-21 20:06:07 +02:00
parent aeb41bc516
commit b767c2fa54

View file

@ -33,7 +33,7 @@ data class Fingerprint(
@Throws(CertificateException::class)
fun matchesCert(cert: X509Certificate): Boolean {
var o: Fingerprint? = when (hashType) {
val o: Fingerprint? = when (hashType) {
HashType.SHA256 -> newSha256Fingerprint(cert)
HashType.SHA1 -> newSha1Fingerprint(cert)
}