Use let.
This commit is contained in:
parent
fd760823b1
commit
bc5ab0759c
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue