android: ktlint wants that body expression on one line
This commit is contained in:
@@ -67,8 +67,7 @@ fun reminderLabel(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** A stored instant as epoch milliseconds, or null if it will not parse. */
|
/** A stored instant as epoch milliseconds, or null if it will not parse. */
|
||||||
fun epochMillis(raw: String): Long? =
|
fun epochMillis(raw: String): Long? = runCatching { OffsetDateTime.parse(raw).toInstant().toEpochMilli() }.getOrNull()
|
||||||
runCatching { OffsetDateTime.parse(raw).toInstant().toEpochMilli() }.getOrNull()
|
|
||||||
|
|
||||||
/** Whether a stored reminder has already passed, for showing it as overdue. */
|
/** Whether a stored reminder has already passed, for showing it as overdue. */
|
||||||
fun isPast(raw: String): Boolean {
|
fun isPast(raw: String): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user