- What would you expect to happen?
No refactoring tips or a simple tip to remove brackets.
- What happens?
Intellij proposes automatic refactoring to:
```go
func (my *My) cmp(other *My) bool {
return my.x != nil && other.x == nil
}
This suggestion also pops up for all other similar boolean cases.
Plugin version (or commit hash): 0.13.1914
IDE name and version: IntelliJ IDEA 2016.3 Build #IU-163.7743.44, built on November 17, 2016
Java version: JRE: 1.8.0_112-release-408-b2 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
OS name and version: macOS Sierra Version: 10.12.1 (16B2555)
What are you trying to do? I have this code:
func (my My) cmp(other My) bool { return (my.x == nil && other.x != nil) || (my.x != nil && other.x == nil) }
This suggestion also pops up for all other similar boolean cases.