diff --git a/shared/src/commonMain/kotlin/com/katiearose/sobriety/shared/Utils.kt b/shared/src/commonMain/kotlin/com/katiearose/sobriety/shared/Utils.kt index d7cdd78..a679043 100644 --- a/shared/src/commonMain/kotlin/com/katiearose/sobriety/shared/Utils.kt +++ b/shared/src/commonMain/kotlin/com/katiearose/sobriety/shared/Utils.kt @@ -20,6 +20,5 @@ fun DateTimeUnit.toMillis(): Long { * Puts the specified value to the last key in this map. */ fun LinkedHashMap.putLast(value: V) { - val lastKey = keys.map { it }.last() - put(lastKey, value) + put(keys.last(), value) } \ No newline at end of file