From 50e9cb0996f1367d3d1281d77aa19fb525e86ef1 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Sat, 5 Nov 2022 12:09:20 -0400 Subject: [PATCH] Fix accidental onError on a asFlow --- .../ca/gosyer/jui/domain/category/interactor/GetCategories.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/category/interactor/GetCategories.kt b/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/category/interactor/GetCategories.kt index e157b55c..3e3b6ddb 100644 --- a/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/category/interactor/GetCategories.kt +++ b/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/category/interactor/GetCategories.kt @@ -22,7 +22,7 @@ class GetCategories @Inject constructor(private val categoryRepository: Category } .singleOrNull() - fun asFlow(dropDefault: Boolean = false, onError: suspend (Throwable) -> Unit = {}) = categoryRepository.getCategories() + fun asFlow(dropDefault: Boolean = false) = categoryRepository.getCategories() .map { categories -> if (dropDefault) { categories.filterNot { it.name.equals("default", true) }