If I have this code ``` fun test(a: Pair<Int, S...
# intellij
a
If I have this code
Copy code
fun test(a: Pair<Int, String>, b: Pair<Int, String>): Boolean {
    return a.first == b.first
            && a.second == b.second
}
and use extract variable refactoring to get:
Copy code
fun test(a: Pair<Int, String>, b: Pair<Int, String>): Boolean {
    val result = (a.first == b.first
            && a.second == b.second)
    return result
}
you can see IDE added parentheses there. Aren’t those unnecessary? IDE doesn’t offer an intention to get rid of them. But if I do, it compiles and runs the same.
s
I have this intention if the whole expression is in one line
a
Maybe it’s because sometimes the parens are need for multiple lines, like with
Copy code
(a
  + b
  + c)
But I’m thinking it doesn’t matter in this case?