mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
use error instead of require
This commit is contained in:
parent
454ba7bf7c
commit
4e53d8462f
1 changed files with 2 additions and 2 deletions
|
@ -174,10 +174,10 @@ internal class RustCrossSigningService @Inject constructor(
|
|||
if (verified) {
|
||||
return
|
||||
} else {
|
||||
require(false) { "This device [$deviceId] is not known, or not yours" }
|
||||
error("This device [$deviceId] is not known, or not yours")
|
||||
}
|
||||
} else {
|
||||
require(false) { "This device [$deviceId] is not known" }
|
||||
error("This device [$deviceId] is not known")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue