aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-28 21:03:20 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-28 21:03:20 +0200
commita9294aa6d25fffa43a73b8111b1fa395ffd20cf8 (patch)
tree5eee4bdc212eeb51a1483df949c945794cae8c21 /src/main
parent8cb00d10ff761b02aea4e25af248f07fb6692f8b (diff)
downloadskyhanni-a9294aa6d25fffa43a73b8111b1fa395ffd20cf8.tar.gz
skyhanni-a9294aa6d25fffa43a73b8111b1fa395ffd20cf8.tar.bz2
skyhanni-a9294aa6d25fffa43a73b8111b1fa395ffd20cf8.zip
small code cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt2
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