Code readability

This commit is contained in:
Benoit Marty 2020-04-16 14:00:24 +02:00
parent d934f92ebd
commit f93f50b582
1 changed files with 2 additions and 2 deletions

View File

@ -1101,10 +1101,10 @@ internal class DefaultKeysBackupService @Inject constructor(
}
override fun isValidRecoveryKeyForCurrentVersion(recoveryKey: String, callback: MatrixCallback<Boolean>) {
val keysBackupVersion = keysBackupVersion ?: return Unit.also { callback.onSuccess(false) }
val safeKeysBackupVersion = keysBackupVersion ?: return Unit.also { callback.onSuccess(false) }
cryptoCoroutineScope.launch(coroutineDispatchers.main) {
isValidRecoveryKeyForKeysBackupVersion(recoveryKey, keysBackupVersion).let {
isValidRecoveryKeyForKeysBackupVersion(recoveryKey, safeKeysBackupVersion).let {
callback.onSuccess(it)
}
}