From 9a410749c465280342ea176d855d9ca4ece94be2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 21 Jul 2023 13:37:55 +0200 Subject: Added /shconfig command --- src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt index 8cf55b29c..b34a5ca4b 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt @@ -89,9 +89,7 @@ object NumberUtil { return this.toString() + this.ordinal() } - fun Number.addSeparators(): String { - return NumberFormat.getNumberInstance().format(this) - } + fun Number.addSeparators() = NumberFormat.getNumberInstance().format(this) fun String.romanToDecimalIfNeeded() = toIntOrNull() ?: romanToDecimal() -- cgit