Skip to content

Commit

Permalink
Suppress code detekt
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 authored and AndyScherzinger committed Nov 1, 2023
1 parent 10b0834 commit 283c8ee
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ class SetupEncryptionDialogFragment : DialogFragment(), Injectable {
mWeakContext = WeakReference(context)
}

@Suppress("ReturnCount")
@Deprecated("Deprecated in Java")
override fun doInBackground(vararg params: Void?): String? {
// fetch private/public key
Expand Down Expand Up @@ -379,6 +380,7 @@ class SetupEncryptionDialogFragment : DialogFragment(), Injectable {
binding.encryptionStatus.setText(R.string.end_to_end_encryption_generating_keys)
}

@Suppress("TooGenericExceptionCaught", "ReturnCount")
@Deprecated("Deprecated in Java")
override fun doInBackground(vararg voids: Void?): String {
// - create CSR, push to server, store returned public key in database
Expand Down Expand Up @@ -423,17 +425,17 @@ class SetupEncryptionDialogFragment : DialogFragment(), Injectable {
val storePrivateKeyResult = storePrivateKeyOperation.execute(user, context)
if (storePrivateKeyResult.isSuccess) {
Log_OC.d(TAG, "private key success")
arbitraryDataProvider!!.storeOrUpdateKeyValue(
arbitraryDataProvider?.storeOrUpdateKeyValue(
user.accountName,
EncryptionUtils.PRIVATE_KEY,
privateKeyString
)
arbitraryDataProvider!!.storeOrUpdateKeyValue(
arbitraryDataProvider?.storeOrUpdateKeyValue(
user.accountName,
EncryptionUtils.PUBLIC_KEY,
publicKeyString
)
arbitraryDataProvider!!.storeOrUpdateKeyValue(
arbitraryDataProvider?.storeOrUpdateKeyValue(
user.accountName,
EncryptionUtils.MNEMONIC,
generateMnemonicString(true)
Expand Down

0 comments on commit 283c8ee

Please sign in to comment.