mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix Detekt issue.
This commit is contained in:
+3
-4
@@ -207,11 +207,10 @@ class RustEncryptionService(
|
|||||||
runCatchingExceptions {
|
runCatchingExceptions {
|
||||||
service.recover(recoveryKey)
|
service.recover(recoveryKey)
|
||||||
}.recoverCatching {
|
}.recoverCatching {
|
||||||
if (it is RustRecoveryException.Import) {
|
when (it) {
|
||||||
// We ignore import errors because the user will be notified about them via the "Key storage out of sync" detection.
|
// We ignore import errors because the user will be notified about them via the "Key storage out of sync" detection.
|
||||||
Unit
|
is RustRecoveryException.Import -> Unit
|
||||||
} else {
|
else -> throw it.mapRecoveryException()
|
||||||
throw it.mapRecoveryException()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user