inspection view: redundant clause is deleted in inspection presentation to add problems from global simple tool IDEA-162032

This commit is contained in:
Dmitry Batkovich
2016-10-04 16:16:19 +03:00
parent d953f7acc2
commit d9cdcadef5
@@ -211,10 +211,8 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro
if (context.isViewClosed() || !(refElement instanceof RefElement)) {
return;
}
if (myToolWrapper instanceof LocalInspectionToolWrapper && !ApplicationManager.getApplication().isUnitTestMode()) {
context.initializeViewIfNeed().doWhenDone(() -> {
context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors);
});
if (!ApplicationManager.getApplication().isUnitTestMode()) {
context.initializeViewIfNeed().doWhenDone(() -> context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors));
}
}