AuthRepository.kt fix
Some checks failed
Android Test / validate-and-test (pull_request) Has been cancelled
Some checks failed
Android Test / validate-and-test (pull_request) Has been cancelled
This commit is contained in:
@@ -7,9 +7,8 @@ object AuthRepository {
|
||||
private var codeCache: String? = null
|
||||
|
||||
suspend fun checkAndSave(text: String): Result<Boolean> {
|
||||
return NetworkDataSource.checkAuth(text).mapCatching { success ->
|
||||
return NetworkDataSource.checkAuth(text).onSuccess { success ->
|
||||
if (success) codeCache = text
|
||||
success
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user