diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/intentions/IfThenToElvisIntention.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/intentions/IfThenToElvisIntention.kt index aded487ca2a..3e610b2cf27 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/intentions/IfThenToElvisIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/intentions/IfThenToElvisIntention.kt @@ -32,18 +32,18 @@ import org.jetbrains.kotlin.resolve.calls.callUtil.getType import org.jetbrains.kotlin.resolve.lazy.BodyResolveMode class IfThenToElvisInspection : IntentionBasedInspection( - IfThenToElvisIntention::class, - { it -> it.isUsedAsExpression(it.analyze(BodyResolveMode.PARTIAL_WITH_CFA)) } + IfThenToElvisIntention::class, + { it -> it.isUsedAsExpression(it.analyze(BodyResolveMode.PARTIAL_WITH_CFA)) } ) { override fun inspectionTarget(element: KtIfExpression) = element.ifKeyword override fun problemHighlightType(element: KtIfExpression): ProblemHighlightType = - if (element.shouldBeTransformed()) super.problemHighlightType(element) else ProblemHighlightType.INFORMATION + if (element.shouldBeTransformed()) super.problemHighlightType(element) else ProblemHighlightType.INFORMATION } class IfThenToElvisIntention : SelfTargetingOffsetIndependentIntention( - KtIfExpression::class.java, - "Replace 'if' expression with elvis expression" + KtIfExpression::class.java, + "Replace 'if' expression with elvis expression" ) { private fun IfThenToSelectData.clausesReplaceableByElvis(): Boolean { @@ -51,8 +51,8 @@ class IfThenToElvisIntention : SelfTargetingOffsetIndependentIntention