From f57a1c64b4ca2381aca92a13f4c5b049808a8d85 Mon Sep 17 00:00:00 2001 From: yamilmedina Date: Fri, 22 Nov 2024 13:52:59 +0100 Subject: [PATCH] chore: cleanup code detekt --- .../com.wire.kalium.cryptography/ProteusClientCoreCryptoImpl.kt | 1 + .../kotlin/com/wire/kalium/logic/data/logout/LogoutReason.kt | 2 +- .../kotlin/com/wire/kalium/persistence/model/LogoutReason.kt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/ProteusClientCoreCryptoImpl.kt b/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/ProteusClientCoreCryptoImpl.kt index f7ba1d2b3d..c0af8e8585 100644 --- a/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/ProteusClientCoreCryptoImpl.kt +++ b/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/ProteusClientCoreCryptoImpl.kt @@ -205,6 +205,7 @@ class ProteusClientCoreCryptoImpl private constructor( if (cryptoBoxFilesExists(File(rootDir))) { kaliumLogger.i("migrating from crypto box at: $rootDir") coreCrypto.proteusCryptoboxMigrate(rootDir) + @Suppress("TooGenericExceptionThrown") // remove this, before merging, just for testing. throw RuntimeException("Some dummy exception for this block") // remove this, before merging, just for testing. kaliumLogger.i("migration successful") diff --git a/data/src/commonMain/kotlin/com/wire/kalium/logic/data/logout/LogoutReason.kt b/data/src/commonMain/kotlin/com/wire/kalium/logic/data/logout/LogoutReason.kt index 8475d397dc..3cfd14e652 100644 --- a/data/src/commonMain/kotlin/com/wire/kalium/logic/data/logout/LogoutReason.kt +++ b/data/src/commonMain/kotlin/com/wire/kalium/logic/data/logout/LogoutReason.kt @@ -52,5 +52,5 @@ enum class LogoutReason { * The migration to CC failed. * This will trigger a cleanup of the local client data and prepare for a fresh start without losing data. */ - MIGRATION_TO_CC_FAILED; + MIGRATION_TO_CC_FAILED } diff --git a/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/model/LogoutReason.kt b/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/model/LogoutReason.kt index e1c9292926..dc306760ba 100644 --- a/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/model/LogoutReason.kt +++ b/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/model/LogoutReason.kt @@ -43,5 +43,5 @@ enum class LogoutReason { /** * The migration to CC failed. */ - MIGRATION_TO_CC_FAILED; + MIGRATION_TO_CC_FAILED }