mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
J2K processing: simplify (minor)
GitOrigin-RevId: f98c98eb00002649696d841c5f2ac5395515bce1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
84b6766520
commit
00e5aa28a5
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user