Skip to content

Commit 4e53d84

Browse files
committed
use error instead of require
1 parent 454ba7b commit 4e53d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/RustCrossSigningService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ internal class RustCrossSigningService @Inject constructor(
174174
if (verified) {
175175
return
176176
} else {
177-
require(false) { "This device [$deviceId] is not known, or not yours" }
177+
error("This device [$deviceId] is not known, or not yours")
178178
}
179179
} else {
180-
require(false) { "This device [$deviceId] is not known" }
180+
error("This device [$deviceId] is not known")
181181
}
182182
}
183183

0 commit comments

Comments
 (0)