New Intention Action: Invert If Condition
Inverts the conditional expression in an if expression.
This commit is contained in:
committed by
Alexey Sedunov
parent
aa20af3cf3
commit
5550924dc5
@@ -0,0 +1,11 @@
|
||||
fun foo(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
fun main() {
|
||||
<caret>if (foo() && foo()) {
|
||||
foo()
|
||||
} else {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user