Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Formatting is improved
  • Loading branch information
sgrishchenko committed Jun 7, 2021
1 parent 555519c commit 8f160cb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions kotlin-react/src/main/kotlin/react/EffectBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ private constructor() {

internal fun createEffectCallback(
effect: EffectBuilder.() -> Unit,
): () -> RCleanup? =
{
val cleanups = arrayOf<RCleanup>()
effect(cleanups.unsafeCast<EffectBuilder>())
buildCleanup(cleanups)
}
): () -> RCleanup? = {
val cleanups = arrayOf<RCleanup>()
effect(cleanups.unsafeCast<EffectBuilder>())
buildCleanup(cleanups)
}

private fun buildCleanup(
cleanups: Array<out RCleanup>,
Expand Down

0 comments on commit 8f160cb

Please sign in to comment.