Fix Detekt issue.
This commit is contained in:
parent
4308f55473
commit
c08590a8de
1 changed files with 3 additions and 4 deletions
|
|
@ -207,11 +207,10 @@ class RustEncryptionService(
|
|||
runCatchingExceptions {
|
||||
service.recover(recoveryKey)
|
||||
}.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.
|
||||
Unit
|
||||
} else {
|
||||
throw it.mapRecoveryException()
|
||||
is RustRecoveryException.Import -> Unit
|
||||
else -> throw it.mapRecoveryException()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue