Keep onPostScroll under detekt ReturnCount limit #71
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
NowPlayingScreen.onPostScrollto three early returns, tripping detekt'sReturnCount ≤ 2ceiling on main.NestedScrollSource.UserInputguard into the existing if/else if/else expression so the function returns at most twice — once for the latch bail, once for the normal path. Runtime behavior is identical.Test plan
(The
v2026.06.02release APK already shipped with the correct latch behavior — the only thing this PR fixes is detekt style.)