"Invert if condition" intention works better for non-symmetric if's
#KT-5009 Fixed
This commit is contained in:
@@ -3,9 +3,7 @@ fun main() {
|
||||
val list = 1..4
|
||||
|
||||
for (x in list) {
|
||||
if (x != 2) {
|
||||
} else {
|
||||
list
|
||||
}
|
||||
if (x != 2) continue
|
||||
list
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user