diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-27 11:32:30 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-27 11:32:30 +0200 |
commit | ec4c3445162757b97ae0143fdf7f56a216c6f1e6 (patch) | |
tree | 6a200b3761ba00390c355818a3d4275a1b960859 /src/main/java | |
parent | 8c317b7b1905cb886fd3af50caa0d3b3149d1d86 (diff) | |
download | skyhanni-ec4c3445162757b97ae0143fdf7f56a216c6f1e6.tar.gz skyhanni-ec4c3445162757b97ae0143fdf7f56a216c6f1e6.tar.bz2 skyhanni-ec4c3445162757b97ae0143fdf7f56a216c6f1e6.zip |
Code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishInfo.kt | 4 |
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) |