diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-28 15:11:50 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-28 15:11:50 +0530 |
commit | c980c898de8417e16942741d469ebef8532b822a (patch) | |
tree | cc0639b9bbe45bb7ff89fe3a956c0619f3d943b2 /crypto | |
parent | de6cdfee0e37aab03bfb91e5e90c3ec4bd740fe3 (diff) |
chore: reformat with trailing commas changes
Diffstat (limited to 'crypto')
4 files changed, 7 insertions, 16 deletions
diff --git a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPDecryptOptions.kt b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPDecryptOptions.kt index 15ce92f0..4596478e 100644 --- a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPDecryptOptions.kt +++ b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPDecryptOptions.kt @@ -1,10 +1,8 @@ package app.passwordstore.crypto /** [CryptoOptions] implementation for PGPainless decrypt operations. */ -public class PGPDecryptOptions -private constructor( - private val values: Map<String, Boolean>, -) : CryptoOptions { +public class PGPDecryptOptions private constructor(private val values: Map<String, Boolean>) : + CryptoOptions { override fun isOptionEnabled(option: String): Boolean { return values.getOrDefault(option, false) diff --git a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPEncryptOptions.kt b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPEncryptOptions.kt index 90de6b51..09531b61 100644 --- a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPEncryptOptions.kt +++ b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPEncryptOptions.kt @@ -1,10 +1,8 @@ package app.passwordstore.crypto /** [CryptoOptions] implementation for PGPainless encrypt operations. */ -public class PGPEncryptOptions -private constructor( - private val values: Map<String, Boolean>, -) : CryptoOptions { +public class PGPEncryptOptions private constructor(private val values: Map<String, Boolean>) : + CryptoOptions { internal companion object { const val ASCII_ARMOR = "ASCII_ARMOR" diff --git a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt index 8aa11803..cbaa110d 100644 --- a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt +++ b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt @@ -31,10 +31,8 @@ import org.pgpainless.util.selection.userid.SelectUserId public class PGPKeyManager @Inject -constructor( - filesDir: String, - private val dispatcher: CoroutineDispatcher, -) : KeyManager<PGPKey, PGPIdentifier> { +constructor(filesDir: String, private val dispatcher: CoroutineDispatcher) : + KeyManager<PGPKey, PGPIdentifier> { private val keyDir = File(filesDir, KEY_DIR_NAME) diff --git a/crypto/pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt b/crypto/pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt index d0cc693e..8893d0eb 100644 --- a/crypto/pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt +++ b/crypto/pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt @@ -217,10 +217,7 @@ class PGPKeyManagerTest { KeyId(-961222705095032109), // Bobby ) val userIds = - arrayOf( - UserId("Alice <owner@example.com>"), - UserId("Bobby <owner@example.com>"), - ) + arrayOf(UserId("Alice <owner@example.com>"), UserId("Bobby <owner@example.com>")) for (idCollection in arrayOf(longKeyIds, userIds)) { val alice1 = keyManager.getKeyById(idCollection[0]) |