Eugen Martynov
02/28/2024, 4:43 PMreturn when (view) {
is ContractView,
is ProductTile,
-> view.tag == text
else -> false
}
Looks a bit odd.Emil Kantis
02/28/2024, 6:09 PMEugen Martynov
02/29/2024, 9:05 AMAnton Mefodichev
03/04/2024, 10:33 AMEmil Kantis
03/04/2024, 10:57 AMfun foo(bar: Any) {
val a = when (bar) {
is Int, //"Useless trailing comma" not reported
-> true
else -> false
}
}
Can be modified to
fun foo(bar: Any) {
val a = when (bar) {
is Int, //"Useless trailing comma" not reported
is Float,
-> true
else -> false
}
}
Without having a diff on the line with "useless" comma.Anton Mefodichev
03/04/2024, 11:05 AMAnton Mefodichev
03/04/2024, 11:12 AMAnton Mefodichev
03/04/2024, 11:13 AMAnton Mefodichev
03/04/2024, 11:33 AMEugen Martynov
03/04/2024, 11:35 AMEmil Kantis
03/04/2024, 11:45 AMis X -> Y
to not contain linebreaks if it's just a single caseAnton Mefodichev
03/04/2024, 11:46 AM