Skip to content

Commit 95498e2

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 32a877f commit 95498e2

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

samples/nested-overlays/src/main/java/com/squareup/sample/nestedoverlays/NestedOverlaysWorkflow.kt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,27 @@ object NestedOverlaysWorkflow : StatefulWorkflow<Unit, State, Nothing, Screen>()
103103
name = "outer",
104104
overlays = listOfNotNull(outerSheet),
105105
body = TopAndBottomBarsScreen(
106-
topBar = if (!renderState.showTopBar) null else context.topBottomBar(
107-
top = true,
108-
renderState
109-
),
106+
topBar = if (!renderState.showTopBar) {
107+
null
108+
} else {
109+
context.topBottomBar(
110+
top = true,
111+
renderState
112+
)
113+
},
110114
content = BodyAndOverlaysScreen(
111115
name = "inner",
112116
body = bodyBarButtons,
113117
overlays = listOfNotNull(innerSheet)
114118
),
115-
bottomBar = if (!renderState.showBottomBar) null else context.topBottomBar(
116-
top = false,
117-
renderState
118-
)
119+
bottomBar = if (!renderState.showBottomBar) {
120+
null
121+
} else {
122+
context.topBottomBar(
123+
top = false,
124+
renderState
125+
)
126+
}
119127
)
120128
)
121129
}

workflow-testing/src/main/java/com/squareup/workflow1/testing/RenderIdempotencyChecker.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ private class RecordingContextInterceptor<PropsT, StateT, OutputT> :
104104
inputs: Array<out Any?>,
105105
calculation: () -> CResult,
106106
proceed: (
107-
key: String, resultType: KClass<CResult>,
107+
key: String,
108+
resultType: KClass<CResult>,
108109
inputs: Array<out Any?>,
109110
calculation: () -> CResult
110111
) -> CResult

0 commit comments

Comments
 (0)