From f9e0619147c3062308270713c9b07009d1cdefb3 Mon Sep 17 00:00:00 2001 From: takahirom Date: Sat, 3 Aug 2024 15:24:57 +0900 Subject: [PATCH] Fix format --- .../confsched/compose/ComposeEffectErrorHandler.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/common/src/commonMain/kotlin/io/github/droidkaigi/confsched/compose/ComposeEffectErrorHandler.kt b/core/common/src/commonMain/kotlin/io/github/droidkaigi/confsched/compose/ComposeEffectErrorHandler.kt index 252eaac25..fe91110d5 100644 --- a/core/common/src/commonMain/kotlin/io/github/droidkaigi/confsched/compose/ComposeEffectErrorHandler.kt +++ b/core/common/src/commonMain/kotlin/io/github/droidkaigi/confsched/compose/ComposeEffectErrorHandler.kt @@ -73,10 +73,9 @@ fun Flow.safeCollectAsRetainedState( collect { value = it } } } + } catch (e: CancellationException) { + throw e } catch (e: Throwable) { - if (e is CancellationException) { - throw e - } composeEffectErrorHandler.emit(e) } }