Fix Detekt issue.
This commit is contained in:
parent
a62ed35a62
commit
a46d1ce339
1 changed files with 3 additions and 4 deletions
|
|
@ -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()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue