Pattern: Unnecessary ()
around expression
Issue: -
Unnecessary parentheses can be safely removed.
Example of incorrect code:
val local = (5 + 3)
if ((local == 8)) { }
fun foo() {
function({ input -> println(input) })
}
Example of correct code:
val local = 5 + 3
if (local == 8) { }
fun foo() {
function { input -> println(input) }
}