diff options
author | David Cole <40234707+DavidArthurCole@users.noreply.github.com> | 2024-10-03 08:34:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 14:34:40 +0200 |
commit | 7efb11313d70c65b8df6692ed237f137d4d346d1 (patch) | |
tree | 206da44a87d03bb516041e59bcd692986c11475f /src/main/java/at/hannibal2/skyhanni/utils/renderables | |
parent | 4d4fbd019a58a694c0d36ae08d25a97c9db268d8 (diff) | |
download | skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.tar.gz skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.tar.bz2 skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.zip |
Backend: Detekt Fixes Part 5 (#2617)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/renderables')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt index f3f704f37..5362cc177 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt @@ -1139,6 +1139,7 @@ interface Renderable { GlStateManager.translate(0f, yShift.toFloat(), 0f) renderY += yShift } + @Suppress("SpacingAroundCurly") val range = yOffsets.indexOfFirst { it >= scroll.asInt() }..<(yOffsets.indexOfFirst { it >= end }.takeIf { it > 0 } ?: yOffsets.size) - 1 |