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,5 @@
|
||||
if (<spot>foo()</spot>) {
|
||||
baz()
|
||||
} else {
|
||||
bar()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
if (!foo()) {
|
||||
bar()
|
||||
} else {
|
||||
baz()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention inverts the conditional expression in an 'if' expression.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user