Detekt: ignore EmptyCatchBlock

This commit is contained in:
Benoit Marty 2022-05-12 17:29:10 +02:00
parent c19563bed2
commit 21904054a5
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ internal class RoomDecryptorProvider @Inject constructor(
newSessionListeners.toList().forEach {
try {
it.onNewSession(roomId, senderKey, sessionId)
} catch (e: Throwable) {
} catch (ignore: Throwable) {
}
}
}

View File

@ -42,7 +42,7 @@ internal class MigrateCryptoTo007(realm: DynamicRealm) : RealmMigrator(realm, 7)
val jsonSignatures = crossSigningKeysMapper.serializeSignatures(objectSignatures)
it.setString(KeyInfoEntityFields.SIGNATURES, jsonSignatures)
}
} catch (failure: Throwable) {
} catch (ignore: Throwable) {
}
// Migrate frozen classes

View File

@ -215,7 +215,7 @@ class NotifiableEventResolver @Inject constructor(
keysClaimed = result.claimedEd25519Key?.let { mapOf("ed25519" to it) },
forwardingCurve25519KeyChain = result.forwardingCurve25519KeyChain
)
} catch (e: MXCryptoError) {
} catch (ignore: MXCryptoError) {
}
}
}