commit 12
This commit is contained in:
1 parent
945b9d347d
commit
2219cdc3df
1 file changed
+1
-1
@@ -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