From 00e5aa28a5d25d8ecc6261fa37e3085d9d750e25 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 20 Dec 2017 16:06:34 +0300 Subject: [PATCH] J2K processing: simplify (minor) GitOrigin-RevId: f98c98eb00002649696d841c5f2ac5395515bce1 --- .../src/org/jetbrains/kotlin/idea/j2k/J2kPostProcessings.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/j2k/J2kPostProcessings.kt b/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/j2k/J2kPostProcessings.kt index c5079dc33980..786ca52433ff 100644 --- a/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/j2k/J2kPostProcessings.kt +++ b/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/j2k/J2kPostProcessings.kt @@ -161,8 +161,7 @@ object J2KPostProcessingRegistrar { if (!additionalChecker(tElement)) return null return { if (intention.applicabilityRange(tElement) != null) { // check availability of the intention again because something could change - val apply = { intention.applyTo(element, null) } - apply() + intention.applyTo(element, null) } } } @@ -191,8 +190,7 @@ object J2KPostProcessingRegistrar { if (!isApplicable(tElement)) return null return { if (isApplicable(tElement)) { // check availability of the inspection again because something could change - val apply = { inspection.applyTo(element) } - apply() + inspection.applyTo(element) } } }