Skip to content

Commit e63cc67

Browse files
committed
Remove double caught exception for mock source
1 parent ecd4275 commit e63cc67

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/src/main/java/com/omega_r/base/data/OmegaBaseRepository.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,7 @@ open class OmegaBaseRepository<SOURCE : Source>(
311311

312312
private suspend fun <R> ProducerScope<R>.applyMock(block: suspend SOURCE.() -> R) {
313313
if (mockSource != null) {
314-
getException {
315-
send(block(mockSource))
316-
return
317-
}
314+
send(block(mockSource))
318315
}
319316
}
320317

0 commit comments

Comments
 (0)