From 8f160cb3a1d647f3a5686c8767d095b512470869 Mon Sep 17 00:00:00 2001 From: sergeigrishchenko Date: Mon, 7 Jun 2021 23:42:59 +0300 Subject: [PATCH] Fix #463 Formatting is improved --- kotlin-react/src/main/kotlin/react/EffectBuilder.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kotlin-react/src/main/kotlin/react/EffectBuilder.kt b/kotlin-react/src/main/kotlin/react/EffectBuilder.kt index f5ea08679b365..867757267e5d6 100644 --- a/kotlin-react/src/main/kotlin/react/EffectBuilder.kt +++ b/kotlin-react/src/main/kotlin/react/EffectBuilder.kt @@ -14,12 +14,11 @@ private constructor() { internal fun createEffectCallback( effect: EffectBuilder.() -> Unit, -): () -> RCleanup? = - { - val cleanups = arrayOf() - effect(cleanups.unsafeCast()) - buildCleanup(cleanups) - } +): () -> RCleanup? = { + val cleanups = arrayOf() + effect(cleanups.unsafeCast()) + buildCleanup(cleanups) +} private fun buildCleanup( cleanups: Array,