mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 02:44:56 +01:00
use error instead of require
This commit is contained in:
parent
454ba7bf7c
commit
4e53d8462f
@ -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…
x
Reference in New Issue
Block a user