mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
Replace usage of .let()
This commit is contained in:
parent
97e6591f0a
commit
6c68285a95
1 changed files with 9 additions and 11 deletions
|
@ -118,17 +118,15 @@ class KeyRingBuilder(
|
|||
signer,
|
||||
secretKeyEncryptor)
|
||||
} else {
|
||||
userIds.keys.first().let { primaryUserId ->
|
||||
PGPKeyRingGenerator(
|
||||
SignatureType.POSITIVE_CERTIFICATION.code,
|
||||
certKey,
|
||||
primaryUserId,
|
||||
keyFingerprintCalculator,
|
||||
hashedSubPackets,
|
||||
null,
|
||||
signer,
|
||||
secretKeyEncryptor)
|
||||
}
|
||||
PGPKeyRingGenerator(
|
||||
SignatureType.POSITIVE_CERTIFICATION.code,
|
||||
certKey,
|
||||
userIds.keys.first(),
|
||||
keyFingerprintCalculator,
|
||||
hashedSubPackets,
|
||||
null,
|
||||
signer,
|
||||
secretKeyEncryptor)
|
||||
}
|
||||
|
||||
addSubKeys(certKey, ringGenerator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue