aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-16 19:18:51 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-16 19:18:51 +0200
commit55b7557888cc8e5361ad340bba030d41f6762c08 (patch)
tree6224400651d3a238ca9d5898ffc6ca6ab8bd6411 /src/main/java/at/hannibal2/skyhanni
parent8dd235557062826138de17e51da24f3c9c58780e (diff)
downloadskyhanni-55b7557888cc8e5361ad340bba030d41f6762c08.tar.gz
skyhanni-55b7557888cc8e5361ad340bba030d41f6762c08.tar.bz2
skyhanni-55b7557888cc8e5361ad340bba030d41f6762c08.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
index e1431350e..104dce34d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
@@ -103,7 +103,7 @@ object TimeUtils {
fun SkyBlockTime.formatted(
dayAndMonthElement: Boolean = true,
yearElement: Boolean = true,
- hoursAndMinutesElement: Boolean = true
+ hoursAndMinutesElement: Boolean = true,
): String {
val hour = (this.hour + 11) % 12 + 1
val timeOfDay = if (this.hour > 11) "pm" else "am"
@@ -128,7 +128,7 @@ object TimeUtils {
"$datePart, $timePart"
} else {
"$datePart$timePart".trim()
- }
+ },
) ?: ""
}