keyword-spacing fix + wildcard-imports fix

This commit is contained in:
Aleks 2021-04-08 12:15:19 +02:00 committed by Benoit Marty
parent 4451b682b1
commit 9d96f90e49
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,11 @@ package org.matrix.android.sdk.internal.auth.registration
import kotlinx.coroutines.delay import kotlinx.coroutines.delay
import org.matrix.android.sdk.api.auth.data.LoginFlowTypes import org.matrix.android.sdk.api.auth.data.LoginFlowTypes
import org.matrix.android.sdk.api.auth.registration.* import org.matrix.android.sdk.api.auth.registration.RegisterThreePid
import org.matrix.android.sdk.api.auth.registration.RegistrationAvailability
import org.matrix.android.sdk.api.auth.registration.RegistrationResult
import org.matrix.android.sdk.api.auth.registration.RegistrationWizard
import org.matrix.android.sdk.api.auth.registration.toFlowResult
import org.matrix.android.sdk.api.failure.Failure import org.matrix.android.sdk.api.failure.Failure
import org.matrix.android.sdk.api.failure.Failure.RegistrationFlowError import org.matrix.android.sdk.api.failure.Failure.RegistrationFlowError
import org.matrix.android.sdk.internal.auth.AuthAPI import org.matrix.android.sdk.internal.auth.AuthAPI

View File

@ -30,7 +30,7 @@ internal class RegisterAvailableTask(private val authAPI: AuthAPI) : Task<String
authAPI.registerAvailable(params) authAPI.registerAvailable(params)
} }
} catch (exception: Throwable) { } catch (exception: Throwable) {
if(exception.isRegistrationAvailabilityError()) { if (exception.isRegistrationAvailabilityError()) {
return RegistrationAvailability.NotAvailable(exception as Failure.ServerError) return RegistrationAvailability.NotAvailable(exception as Failure.ServerError)
} else { } else {
throw exception throw exception