AuthRepository.kt fix
Some checks failed
Android Test / validate-and-test (pull_request) Has been cancelled

This commit is contained in:
2025-11-29 16:27:55 +03:00
parent b98c7f410f
commit bc7e14ab06

View File

@@ -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
}
}
}