Use let.
This commit is contained in:
@@ -30,9 +30,7 @@ object RustIdentityResetHandleFactory {
|
||||
identityResetHandle: org.matrix.rustcomponents.sdk.IdentityResetHandle?
|
||||
): Result<IdentityResetHandle?> {
|
||||
return runCatching {
|
||||
if (identityResetHandle == null) {
|
||||
null
|
||||
} else {
|
||||
identityResetHandle?.let {
|
||||
when (val authType = identityResetHandle.authType()) {
|
||||
is CrossSigningResetAuthType.Oidc -> RustOidcIdentityResetHandle(identityResetHandle, authType.info.approvalUrl)
|
||||
// User interactive authentication (user + password)
|
||||
|
||||
Reference in New Issue
Block a user