dimsuz
03/24/2023, 4:30 PMalso
is unnecessary, for example
foo.also { bar() } // doesn't use "it"
Landry Norris
03/24/2023, 4:35 PMfun foo() = Bar().also { baz() }
With this rule, it'd make me use a full function body.dimsuz
03/24/2023, 5:57 PMfun foo() {
val x = 3
bar().also { baz() }
}
in our code and thought it makes no sense.
I guess it was using it
at some point, which got lost after some edit.Landry Norris
03/24/2023, 6:34 PMAtul Gupta
03/26/2023, 7:21 PMdimsuz
03/27/2023, 5:02 PMAtul Gupta
03/28/2023, 10:48 AMdetekt
😀