aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-13 00:00:03 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-13 00:00:03 +0200
commit42db7ef96003b87280e3f041aed63112636ea5ed (patch)
treeab09900a5db122ae02d84423f79da542fca7cf29 /src/main/java/at/hannibal2/skyhanni/features/misc
parent3683257be3e74ac977d189100ff8db48b55d2a1b (diff)
downloadskyhanni-42db7ef96003b87280e3f041aed63112636ea5ed.tar.gz
skyhanni-42db7ef96003b87280e3f041aed63112636ea5ed.tar.bz2
skyhanni-42db7ef96003b87280e3f041aed63112636ea5ed.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt
index c01c52124..3c355a5a7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt
@@ -16,8 +16,5 @@ class Cache {
configChanged = false
}
- fun isCached(loreBeforeModification: List<String>): Boolean {
- if (configChanged || loreBeforeModification.size != cachedLoreBefore.size) return false
- return loreBeforeModification.indices.none { loreBeforeModification[it] != cachedLoreBefore[it] }
- }
-} \ No newline at end of file
+ fun isCached(loreBeforeModification: List<String>): Boolean = !configChanged && loreBeforeModification == cachedLoreBefore
+}