mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 11:57:59 +01:00
Replace buildMap() call with associateWith()
This commit is contained in:
parent
34f706191d
commit
f880fb94aa
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