mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 13:00:18 +03:00
Let variable be "val" if possible.
This commit is contained in:
parent
aeb41bc516
commit
b767c2fa54
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ data class Fingerprint(
|
||||||
|
|
||||||
@Throws(CertificateException::class)
|
@Throws(CertificateException::class)
|
||||||
fun matchesCert(cert: X509Certificate): Boolean {
|
fun matchesCert(cert: X509Certificate): Boolean {
|
||||||
var o: Fingerprint? = when (hashType) {
|
val o: Fingerprint? = when (hashType) {
|
||||||
HashType.SHA256 -> newSha256Fingerprint(cert)
|
HashType.SHA256 -> newSha256Fingerprint(cert)
|
||||||
HashType.SHA1 -> newSha1Fingerprint(cert)
|
HashType.SHA1 -> newSha1Fingerprint(cert)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue