Skip to content

Commit 7071aa5

Browse files
rjrjrgithub-actions[bot]
authored andcommitted
Apply changes from ktLintFormat
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 10f5ef7 commit 7071aa5

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public interface BaseRenderContext<out PropsT, StateT, in OutputT> {
303303
public fun <E1, E2, E3, E4, E5, E6, E7, E8, E9> eventHandler(
304304
name: () -> String = { "eventHandler" },
305305
update: WorkflowAction<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>
306-
.Updater.(E1, E2, E3, E4, E5, E6, E7, E8, E9) -> Unit
306+
.Updater.(E1, E2, E3, E4, E5, E6, E7, E8, E9) -> Unit
307307
): (E1, E2, E3, E4, E5, E6, E7, E8, E9) -> Unit {
308308
return { e1, e2, e3, e4, e5, e6, e7, e8, e9 ->
309309
actionSink.send(action(name) { update(e1, e2, e3, e4, e5, e6, e7, e8, e9) })
@@ -313,7 +313,7 @@ public interface BaseRenderContext<out PropsT, StateT, in OutputT> {
313313
public fun <E1, E2, E3, E4, E5, E6, E7, E8, E9, E10> eventHandler(
314314
name: () -> String = { "eventHandler" },
315315
update: WorkflowAction<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>
316-
.Updater.(E1, E2, E3, E4, E5, E6, E7, E8, E9, E10) -> Unit
316+
.Updater.(E1, E2, E3, E4, E5, E6, E7, E8, E9, E10) -> Unit
317317
): (E1, E2, E3, E4, E5, E6, E7, E8, E9, E10) -> Unit {
318318
return { e1, e2, e3, e4, e5, e6, e7, e8, e9, e10 ->
319319
actionSink.send(action(name) { update(e1, e2, e3, e4, e5, e6, e7, e8, e9, e10) })
@@ -326,30 +326,30 @@ public interface BaseRenderContext<out PropsT, StateT, in OutputT> {
326326
*/
327327
public fun <PropsT, StateT, OutputT, ChildOutputT, ChildRenderingT>
328328
BaseRenderContext<PropsT, StateT, OutputT>.renderChild(
329-
child: Workflow<Unit, ChildOutputT, ChildRenderingT>,
330-
key: String = "",
331-
handler: (ChildOutputT) -> WorkflowAction<PropsT, StateT, OutputT>
332-
): ChildRenderingT = renderChild(child, Unit, key, handler)
329+
child: Workflow<Unit, ChildOutputT, ChildRenderingT>,
330+
key: String = "",
331+
handler: (ChildOutputT) -> WorkflowAction<PropsT, StateT, OutputT>
332+
): ChildRenderingT = renderChild(child, Unit, key, handler)
333333

334334
/**
335335
* Convenience alias of [BaseRenderContext.renderChild] for workflows that don't emit output.
336336
*/
337337
public fun <PropsT, ChildPropsT, StateT, OutputT, ChildRenderingT>
338338
BaseRenderContext<PropsT, StateT, OutputT>.renderChild(
339-
child: Workflow<ChildPropsT, Nothing, ChildRenderingT>,
340-
props: ChildPropsT,
341-
key: String = ""
342-
): ChildRenderingT = renderChild(child, props, key) { noAction() }
339+
child: Workflow<ChildPropsT, Nothing, ChildRenderingT>,
340+
props: ChildPropsT,
341+
key: String = ""
342+
): ChildRenderingT = renderChild(child, props, key) { noAction() }
343343

344344
/**
345345
* Convenience alias of [BaseRenderContext.renderChild] for children that don't take props or emit
346346
* output.
347347
*/
348348
public fun <PropsT, StateT, OutputT, ChildRenderingT>
349349
BaseRenderContext<PropsT, StateT, OutputT>.renderChild(
350-
child: Workflow<Unit, Nothing, ChildRenderingT>,
351-
key: String = ""
352-
): ChildRenderingT = renderChild(child, Unit, key) { noAction() }
350+
child: Workflow<Unit, Nothing, ChildRenderingT>,
351+
key: String = ""
352+
): ChildRenderingT = renderChild(child, Unit, key) { noAction() }
353353

354354
/**
355355
* Ensures a [LifecycleWorker] is running. Since [worker] can't emit anything,
@@ -362,9 +362,9 @@ public fun <PropsT, StateT, OutputT, ChildRenderingT>
362362
*/
363363
public inline fun <reified W : LifecycleWorker, PropsT, StateT, OutputT>
364364
BaseRenderContext<PropsT, StateT, OutputT>.runningWorker(
365-
worker: W,
366-
key: String = ""
367-
) {
365+
worker: W,
366+
key: String = ""
367+
) {
368368
runningWorker(worker, key) {
369369
// The compiler thinks this code is unreachable, and it is correct. But we have to pass a lambda
370370
// here so we might as well check at runtime as well.
@@ -387,9 +387,9 @@ public inline fun <reified W : LifecycleWorker, PropsT, StateT, OutputT>
387387
)
388388
public inline fun <reified W : Worker<Nothing>, PropsT, StateT, OutputT>
389389
BaseRenderContext<PropsT, StateT, OutputT>.runningWorker(
390-
worker: W,
391-
key: String = ""
392-
) {
390+
worker: W,
391+
key: String = ""
392+
) {
393393
runningWorker(worker, key) {
394394
// The compiler thinks this code is unreachable, and it is correct. But we have to pass a lambda
395395
// here so we might as well check at runtime as well.
@@ -417,10 +417,10 @@ public inline fun <reified W : Worker<Nothing>, PropsT, StateT, OutputT>
417417
*/
418418
public inline fun <T, reified W : Worker<T>, PropsT, StateT, OutputT>
419419
BaseRenderContext<PropsT, StateT, OutputT>.runningWorker(
420-
worker: W,
421-
key: String = "",
422-
noinline handler: (T) -> WorkflowAction<PropsT, StateT, OutputT>
423-
) {
420+
worker: W,
421+
key: String = "",
422+
noinline handler: (T) -> WorkflowAction<PropsT, StateT, OutputT>
423+
) {
424424
runningWorker(worker, typeOf<W>(), key, handler)
425425
}
426426

@@ -435,11 +435,11 @@ public inline fun <T, reified W : Worker<T>, PropsT, StateT, OutputT>
435435
@PublishedApi
436436
internal fun <T, PropsT, StateT, OutputT>
437437
BaseRenderContext<PropsT, StateT, OutputT>.runningWorker(
438-
worker: Worker<T>,
439-
workerType: KType,
440-
key: String = "",
441-
handler: (T) -> WorkflowAction<PropsT, StateT, OutputT>
442-
) {
438+
worker: Worker<T>,
439+
workerType: KType,
440+
key: String = "",
441+
handler: (T) -> WorkflowAction<PropsT, StateT, OutputT>
442+
) {
443443
val workerWorkflow = WorkerWorkflow<T>(workerType, key)
444444
renderChild(workerWorkflow, props = worker, key = key, handler = handler)
445445
}

0 commit comments

Comments
 (0)