Fix code quality.
This commit is contained in:
parent
351f058f06
commit
c8ff0d5641
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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue