Fix Detekt issue.

This commit is contained in:
Benoit Marty 2025-10-09 12:06:58 +02:00
parent 4308f55473
commit c08590a8de

View file

@ -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()
}
}
}