aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-27 11:32:30 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-27 11:32:30 +0200
commitec4c3445162757b97ae0143fdf7f56a216c6f1e6 (patch)
tree6a200b3761ba00390c355818a3d4275a1b960859
parent8c317b7b1905cb886fd3af50caa0d3b3149d1d86 (diff)
downloadskyhanni-ec4c3445162757b97ae0143fdf7f56a216c6f1e6.tar.gz
skyhanni-ec4c3445162757b97ae0143fdf7f56a216c6f1e6.tar.bz2
skyhanni-ec4c3445162757b97ae0143fdf7f56a216c6f1e6.zip
Code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishInfo.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishInfo.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishInfo.kt
index 104a71a07..629aaa02f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishInfo.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishInfo.kt
@@ -37,9 +37,7 @@ data class TrophyFishInfo(
)
}
- fun getFilletValue(rarity: TrophyRarity): Int {
- return fillet.getOrDefault(rarity, -1)
- }
+ fun getFilletValue(rarity: TrophyRarity) = fillet.getOrDefault(rarity, -1)
private fun formatCount(counts: Map<TrophyRarity, Int>, rarity: TrophyRarity): String {
val count = counts.getOrDefault(rarity, 0)