J2K processing: simplify (minor)
This commit is contained in:
@@ -161,8 +161,7 @@ object J2KPostProcessingRegistrar {
|
|||||||
if (!additionalChecker(tElement)) return null
|
if (!additionalChecker(tElement)) return null
|
||||||
return {
|
return {
|
||||||
if (intention.applicabilityRange(tElement) != null) { // check availability of the intention again because something could change
|
if (intention.applicabilityRange(tElement) != null) { // check availability of the intention again because something could change
|
||||||
val apply = { intention.applyTo(element, null) }
|
intention.applyTo(element, null)
|
||||||
apply()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -191,8 +190,7 @@ object J2KPostProcessingRegistrar {
|
|||||||
if (!isApplicable(tElement)) return null
|
if (!isApplicable(tElement)) return null
|
||||||
return {
|
return {
|
||||||
if (isApplicable(tElement)) { // check availability of the inspection again because something could change
|
if (isApplicable(tElement)) { // check availability of the inspection again because something could change
|
||||||
val apply = { inspection.applyTo(element) }
|
inspection.applyTo(element)
|
||||||
apply()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user