fix(android): collapse onPostScroll branches (detekt ReturnCount)
android / Build + lint + test (push) Has been cancelled

This commit is contained in:
2026-06-01 19:14:39 -04:00
parent 2b9b4c1db6
commit 3d52f271a0
@@ -193,16 +193,17 @@ private fun rememberDragDismissConnection(
source: NestedScrollSource,
): Offset {
if (source != NestedScrollSource.UserInput) return Offset.Zero
if (available.y > 0f) {
return if (available.y > 0f) {
accumulated += available.y
if (accumulated >= thresholdPx) {
accumulated = 0f
onDismiss()
}
return Offset(0f, available.y)
Offset(0f, available.y)
} else {
if (consumed.y != 0f || available.y < 0f) accumulated = 0f
Offset.Zero
}
if (consumed.y != 0f || available.y < 0f) accumulated = 0f
return Offset.Zero
}
override suspend fun onPreFling(available: Velocity): Velocity {