diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-04-25 10:47:02 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-04-25 10:47:02 +0530 |
commit | aaf6ceb8ecbc71f6948c84b1a19fb83abfe8a418 (patch) | |
tree | f688f0bf69ce4db3781cf40c76d4315165f8c24e /crypto-pgpainless/src/main/kotlin/dev | |
parent | 11720e95429f03be7a4903989fbd011dd630b847 (diff) |
all: reformat with ktfmt 0.36
Diffstat (limited to 'crypto-pgpainless/src/main/kotlin/dev')
-rw-r--r-- | crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManager.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManager.kt b/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManager.kt index 3cc68ab3..137bd141 100644 --- a/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManager.kt +++ b/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManager.kt @@ -79,17 +79,17 @@ constructor( when (id) { is GpgIdentifier.KeyId -> { val keyIdMatch = - keys.map { key -> key to tryGetId(key) }.firstOrNull { (_, keyId) -> - keyId?.id == id.id - } + keys + .map { key -> key to tryGetId(key) } + .firstOrNull { (_, keyId) -> keyId?.id == id.id } keyIdMatch?.first } is GpgIdentifier.UserId -> { val selector = SelectUserId.byEmail(id.email) val userIdMatch = - keys.map { key -> key to tryParseKeyring(key) }.firstOrNull { (_, keyRing) -> - selector.firstMatch(keyRing) != null - } + keys + .map { key -> key to tryParseKeyring(key) } + .firstOrNull { (_, keyRing) -> selector.firstMatch(keyRing) != null } userIdMatch?.first } } |