From 55b7557888cc8e5361ad340bba030d41f6762c08 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:18:51 +0200 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') 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() - } + }, ) ?: "" } -- cgit