Fix code quality.

This commit is contained in:
Benoit Marty
2024-10-08 11:09:46 +02:00
parent bc62f8cfce
commit 0099777360
3 changed files with 7 additions and 5 deletions
@@ -8,7 +8,7 @@
package io.element.android.libraries.matrix.api.encryption.identity
enum class IdentityState {
/** The user is verified with us */
/** The user is verified with us. */
Verified,
/**
@@ -205,7 +205,7 @@ internal class RustEncryptionService(
}
override suspend fun pinUserIdentity(userId: UserId): Result<Unit> = runCatching {
val userIdentity = service.getUserIdentity(userId.value) ?: throw IllegalStateException("User identity not found")
val userIdentity = service.getUserIdentity(userId.value) ?: error("User identity not found")
userIdentity.pin()
}
}