Reformat: if to when
This commit is contained in:
+3
-6
@@ -125,16 +125,13 @@ class IfToWhenIntention : SelfTargetingRangeIntention<KtIfExpression>(KtIfExpres
|
|||||||
baseIfExpressionForSyntheticBranch = syntheticElseBranch
|
baseIfExpressionForSyntheticBranch = syntheticElseBranch
|
||||||
currentIfExpression = syntheticElseBranch
|
currentIfExpression = syntheticElseBranch
|
||||||
toDelete.add(syntheticElseBranch)
|
toDelete.add(syntheticElseBranch)
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
appendElseBlock(syntheticElseBranch)
|
appendElseBlock(syntheticElseBranch)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
} else if (currentElseBranch is KtIfExpression) {
|
||||||
else if (currentElseBranch is KtIfExpression) {
|
|
||||||
currentIfExpression = currentElseBranch
|
currentIfExpression = currentElseBranch
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
appendElseBlock(currentElseBranch)
|
appendElseBlock(currentElseBranch)
|
||||||
applyFullCommentSaver = false
|
applyFullCommentSaver = false
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user