mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-22 14:38:15 +08: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…
Reference in New Issue
Block a user