diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-28 21:03:20 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-28 21:03:20 +0200 |
commit | a9294aa6d25fffa43a73b8111b1fa395ffd20cf8 (patch) | |
tree | 5eee4bdc212eeb51a1483df949c945794cae8c21 /src/main/java | |
parent | 8cb00d10ff761b02aea4e25af248f07fb6692f8b (diff) | |
download | skyhanni-a9294aa6d25fffa43a73b8111b1fa395ffd20cf8.tar.gz skyhanni-a9294aa6d25fffa43a73b8111b1fa395ffd20cf8.tar.bz2 skyhanni-a9294aa6d25fffa43a73b8111b1fa395ffd20cf8.zip |
small code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt index 0b79cf888..9db8553aa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt @@ -274,7 +274,7 @@ class PowderTracker { addAsSingletonList("§b$mithrilCount ${reward.displayName} §7($mithrilPerHour/h)") } - private fun format(e: Double): String? = if (e < 0) "0" else e.toInt().addSeparators() + private fun format(e: Double): String = if (e < 0) "0" else e.toInt().addSeparators() private fun calculateResourceHour(resourceInfo: ResourceInfo) { val difference = resourceInfo.estimated - resourceInfo.lastEstimated |