Paul Woitaschek
06/09/2020, 10:40 AMimport java.time.LocalDate
import java.time.temporal.ChronoUnit
fun test() {
val lastActive = LocalDate.now()
if (lastActive != null && ChronoUnit.DAYS.between(
lastActive,
LocalDate.now()
) > 30
) {
println("hello")
}
}
And then ktlint complains because it wants to have two less spaces before the argument ChronoUnit.DAYS.between
Can someone confirm this?romtsn
06/09/2020, 11:27 AMPaul Woitaschek
06/09/2020, 12:29 PM