mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-14 00:12:06 +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
|
||||
val userIds = buildMap<String, RevocationState> {
|
||||
cert.userIds.forEach {
|
||||
put(it, RevocationState(cert.getUserIdRevocation(it)))
|
||||
}
|
||||
}
|
||||
val userIds = cert.userIds.associateWith { RevocationState(cert.getUserIdRevocation(it)) }
|
||||
|
||||
val node = CertSynopsis(certFingerprint,
|
||||
expirationDate,
|
||||
|
|
Loading…
Reference in a new issue