commit 12 #14
@@ -9,7 +9,7 @@ class CheckAndSaveAuthCodeUseCase(
|
|||||||
text: String
|
text: String
|
||||||
): Result<Unit> {
|
): Result<Unit> {
|
||||||
return repository.checkAndSave(text).mapCatching { success ->
|
return repository.checkAndSave(text).mapCatching { success ->
|
||||||
if (!success) error("Code is incorrect")
|
if (!success) error("Code is Incorrect")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user