Skip to content

Commit ce6eaa9

Browse files
committed
Fix spotless
1 parent 4858167 commit ce6eaa9

File tree

1 file changed

+4
-2
lines changed
  • core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar

1 file changed

+4
-2
lines changed

core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/Scrollbar.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ fun Scrollbar(
247247
pressedOffset = offset
248248

249249
interactionSource?.tryEmit(
250-
if (tryAwaitRelease()) PressInteraction.Release(initialPress)
251-
else PressInteraction.Cancel(initialPress),
250+
when {
251+
tryAwaitRelease() -> PressInteraction.Release(initialPress)
252+
else -> PressInteraction.Cancel(initialPress)
253+
},
252254
)
253255

254256
// End the press

0 commit comments

Comments
 (0)