Skip to content

Commit 353597b

Browse files
RBusarowgithub-actions[bot]
authored andcommitted
Apply changes from ktLintFormat
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5053a1b commit 353597b

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

workflow-core/src/commonMain/kotlin/com/squareup/workflow1/BaseRenderContext.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public interface BaseRenderContext<out PropsT, StateT, in OutputT> {
104104
*/
105105
public fun <ChildRenderingT> renderComposable(
106106
key: String = "",
107-
content: @WorkflowComposable @Composable () -> ChildRenderingT
107+
content:
108+
@WorkflowComposable @Composable
109+
() -> ChildRenderingT
108110
): ChildRenderingT
109111

110112
/**

workflow-core/src/commonMain/kotlin/com/squareup/workflow1/compose/ComposeWorkflow.kt

+6-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,12 @@ constructor(
160160
private val injectedService: Service,
161161
private val child: Workflow<String, String, String>
162162
) : ComposeWorkflow<
163-
/* PropsT */ String,
164-
/* OutputT */ String,
165-
/* RenderingT */ Rendering
163+
/* PropsT */
164+
String,
165+
/* OutputT */
166+
String,
167+
/* RenderingT */
168+
Rendering
166169
>() {
167170

168171
// In real code, this would not be defined in the workflow itself but somewhere else in the

workflow-core/src/commonMain/kotlin/com/squareup/workflow1/compose/WorkflowComposables.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ fun <ChildPropsT, ChildOutputT, ChildRenderingT> renderWorkflow(
2828
// Don't need to jump out into non-workflow world if the workflow is already composable.
2929
workflow.renderWithRecomposeBoundary(props, onOutput)
3030
} else {
31-
val host = LocalWorkflowCompositionHost.current
31+
val host = LocalWorkflowCompositionHost.current
3232
host.renderChild(workflow, props, onOutput)
33-
}
33+
}
3434

3535
/**
3636
* Renders a child [Workflow] that has no output (`OutputT` is [Nothing]).

0 commit comments

Comments
 (0)