mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Replace buildMap() call with associateWith()
This commit is contained in:
parent
99b47eafb6
commit
4f2f54f4b3
1 changed files with 1 additions and 5 deletions
|
@ -128,11 +128,7 @@ class WebOfTrust(private val certificateStore: PGPCertificateStore) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// map user-ids to revocation states
|
// map user-ids to revocation states
|
||||||
val userIds = buildMap<String, RevocationState> {
|
val userIds = cert.userIds.associateWith { RevocationState(cert.getUserIdRevocation(it)) }
|
||||||
cert.userIds.forEach {
|
|
||||||
put(it, RevocationState(cert.getUserIdRevocation(it)))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
val node = CertSynopsis(certFingerprint,
|
val node = CertSynopsis(certFingerprint,
|
||||||
expirationDate,
|
expirationDate,
|
||||||
|
|
Loading…
Reference in a new issue