1
0
Fork 0
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:
Paul Schaub 2023-07-07 16:18:32 +02:00
parent 99b47eafb6
commit 4f2f54f4b3
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
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,