From a9294aa6d25fffa43a73b8111b1fa395ffd20cf8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 28 Oct 2023 21:03:20 +0200 Subject: small code cleanup --- .../hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') 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 -- cgit