mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Use let.
This commit is contained in:
+1
-3
@@ -30,9 +30,7 @@ object RustIdentityResetHandleFactory {
|
|||||||
identityResetHandle: org.matrix.rustcomponents.sdk.IdentityResetHandle?
|
identityResetHandle: org.matrix.rustcomponents.sdk.IdentityResetHandle?
|
||||||
): Result<IdentityResetHandle?> {
|
): Result<IdentityResetHandle?> {
|
||||||
return runCatching {
|
return runCatching {
|
||||||
if (identityResetHandle == null) {
|
identityResetHandle?.let {
|
||||||
null
|
|
||||||
} else {
|
|
||||||
when (val authType = identityResetHandle.authType()) {
|
when (val authType = identityResetHandle.authType()) {
|
||||||
is CrossSigningResetAuthType.Oidc -> RustOidcIdentityResetHandle(identityResetHandle, authType.info.approvalUrl)
|
is CrossSigningResetAuthType.Oidc -> RustOidcIdentityResetHandle(identityResetHandle, authType.info.approvalUrl)
|
||||||
// User interactive authentication (user + password)
|
// User interactive authentication (user + password)
|
||||||
|
|||||||
Reference in New Issue
Block a user