use error instead of require

This commit is contained in:
Valere 2023-11-10 16:33:46 +01:00
parent 454ba7bf7c
commit 4e53d8462f
1 changed files with 2 additions and 2 deletions

View File

@ -174,10 +174,10 @@ internal class RustCrossSigningService @Inject constructor(
if (verified) { if (verified) {
return return
} else { } else {
require(false) { "This device [$deviceId] is not known, or not yours" } error("This device [$deviceId] is not known, or not yours")
} }
} else { } else {
require(false) { "This device [$deviceId] is not known" } error("This device [$deviceId] is not known")
} }
} }