diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-21 13:37:55 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-21 13:37:55 +0200 |
commit | 9a410749c465280342ea176d855d9ca4ece94be2 (patch) | |
tree | 97157b0a88b0a9af27f0290661c50b1a287a0ab7 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | ac792ec4d55d46512930667402782fb545221a0f (diff) | |
download | skyhanni-9a410749c465280342ea176d855d9ca4ece94be2.tar.gz skyhanni-9a410749c465280342ea176d855d9ca4ece94be2.tar.bz2 skyhanni-9a410749c465280342ea176d855d9ca4ece94be2.zip |
Added /shconfig command
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt | 4 |
1 files changed, 1 insertions, 3 deletions
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() |