Skip to content

Commit 6bb4c28

Browse files
cypressiousmglukhikh
authored andcommitted
Minor: make var val
1 parent 1987187 commit 6bb4c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/intentions/FoldIfToReturnAsymmetricallyIntention.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FoldIfToReturnAsymmetricallyIntention : SelfTargetingRangeIntention<KtIfEx
3939
val elseBranch = KtPsiUtil.skipTrailingWhitespacesAndComments(element) as KtReturnExpression
4040

4141
val psiFactory = KtPsiFactory(element)
42-
var newIfExpression = psiFactory.createIf(condition, thenBranch, elseBranch)
42+
val newIfExpression = psiFactory.createIf(condition, thenBranch, elseBranch)
4343

4444
val thenReturn = BranchedFoldingUtils.getFoldableBranchedReturn(newIfExpression.then!!)!!
4545
val elseReturn = BranchedFoldingUtils.getFoldableBranchedReturn(newIfExpression.`else`!!)!!

0 commit comments

Comments
 (0)