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

View file

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