1
0
Fork 0
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:
Paul Schaub 2023-07-07 16:18:32 +02:00
parent 34f706191d
commit f880fb94aa
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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,