AuthRepository.kt fix
This commit is contained in:
1 parent
b98c7f410f
commit
bc7e14ab06
1 file changed
+1
-2
@@ -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