Merge else-if intention (KT-34218)
#KT-34218 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
383239aff6
commit
613fbf7a5d
@@ -0,0 +1,5 @@
|
||||
if (a) {
|
||||
println("a")
|
||||
} else if (b) {
|
||||
println("not a and b")
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
if (a) {
|
||||
println("a")
|
||||
} else {
|
||||
if (b) {
|
||||
println("not a and b")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention merges else and nested <b>if</b> statement without <b>else</b> branches into a single <b>else if</b>.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user