Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

This commit is contained in:
davotoula
2026-03-06 17:15:32 +01:00
parent 99e8ffcdeb
commit 34e1ea92b2
2 changed files with 2 additions and 2 deletions
@@ -32,7 +32,7 @@ import kotlin.math.round
private const val YEAR_DATE_FORMAT = "MMM dd, yyyy"
private const val MONTH_DATE_FORMAT = "MMM dd"
var locale = Locale.getDefault()
var locale: Locale = Locale.getDefault()
var yearFormatter = SimpleDateFormat(YEAR_DATE_FORMAT, locale)
var monthFormatter = SimpleDateFormat(MONTH_DATE_FORMAT, locale)
@@ -82,7 +82,7 @@ class NotificationSummaryState(
Instant.ofEpochSecond(createAt).atZone(ZoneId.systemDefault()).toLocalDateTime(),
)
fun today() = sdf.format(LocalDateTime.now())
fun today(): String = sdf.format(LocalDateTime.now())
public suspend fun initializeSuspend() {
checkNotInMainThread()