aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
index 1ac5ad3f1..49c9c520c 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
@@ -150,11 +150,9 @@ object StringUtils {
for (i in 0..steps) {
val toDouble = i.toDouble()
val stepPercentage = toDouble / steps
- if (stepPercentage >= percentage) {
- if (!inMissingArea) {
- builder.append(missing)
- inMissingArea = true
- }
+ if (stepPercentage >= percentage && !inMissingArea) {
+ builder.append(missing)
+ inMissingArea = true
}
builder.append(step)
}