Minor: make var val

This commit is contained in:
Kirill
2016-08-14 21:53:29 +03:00
committed by Mikhail Glukhikh
parent 1987187968
commit 6bb4c28c2e
@@ -39,7 +39,7 @@ class FoldIfToReturnAsymmetricallyIntention : SelfTargetingRangeIntention<KtIfEx
val elseBranch = KtPsiUtil.skipTrailingWhitespacesAndComments(element) as KtReturnExpression
val psiFactory = KtPsiFactory(element)
var newIfExpression = psiFactory.createIf(condition, thenBranch, elseBranch)
val newIfExpression = psiFactory.createIf(condition, thenBranch, elseBranch)
val thenReturn = BranchedFoldingUtils.getFoldableBranchedReturn(newIfExpression.then!!)!!
val elseReturn = BranchedFoldingUtils.getFoldableBranchedReturn(newIfExpression.`else`!!)!!