Skip to content

Commit f1c1390

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 20e4dfd commit f1c1390

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
@@ -101,7 +101,9 @@ public interface BaseRenderContext<out PropsT, StateT, in OutputT> {
101101
*/
102102
public fun <ChildRenderingT> renderComposable(
103103
key: String = "",
104-
content: @WorkflowComposable @Composable () -> ChildRenderingT
104+
content:
105+
@WorkflowComposable @Composable
106+
() -> ChildRenderingT
105107
): ChildRenderingT
106108

107109
/**

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,12 @@ constructor(
156156
private val injectedService: Service,
157157
private val child: Workflow<String, String, String>
158158
) : ComposeWorkflow<
159-
/* PropsT */ String,
160-
/* OutputT */ String,
161-
/* RenderingT */ Rendering
159+
/* PropsT */
160+
String,
161+
/* OutputT */
162+
String,
163+
/* RenderingT */
164+
Rendering
162165
>() {
163166

164167
// 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)