forked from student-15031/NTO-2025-Android-TeamTask
Compare commits
3 Commits
67e26d142a
...
00162984a9
| Author | SHA1 | Date | |
|---|---|---|---|
| 00162984a9 | |||
| bc7e14ab06 | |||
| b98c7f410f |
@@ -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