From f0b172ca35de589a5e9280aaf8f87a6bdcacf24e Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 18 Jan 2018 14:45:47 +0300 Subject: [PATCH] Remove setter parameter type: reformat --- .../inspections/RemoveSetterParameterTypeInspection.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/RemoveSetterParameterTypeInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/RemoveSetterParameterTypeInspection.kt index e90c0d5931d..99e3f48af7f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/RemoveSetterParameterTypeInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/RemoveSetterParameterTypeInspection.kt @@ -17,10 +17,12 @@ class RemoveSetterParameterTypeInspection : AbstractKotlinInspection() { override fun buildVisitor(holder: ProblemsHolder, isOnTheFly: Boolean): PsiElementVisitor { return parameterVisitor { dcl -> val typeReference = dcl.takeIf { it.isSetterParameter }?.typeReference ?: return@parameterVisitor - holder.registerProblem(typeReference, - "Redundant setter parameter type", - ProblemHighlightType.LIKE_UNUSED_SYMBOL, - IntentionWrapper(RemoveExplicitTypeIntention(), dcl.containingKtFile)) + holder.registerProblem( + typeReference, + "Redundant setter parameter type", + ProblemHighlightType.LIKE_UNUSED_SYMBOL, + IntentionWrapper(RemoveExplicitTypeIntention(), dcl.containingKtFile) + ) } } } \ No newline at end of file