IG: don't register INFORMATION in batch mode

This commit is contained in:
Bas Leijdekkers
2018-07-23 15:40:56 +02:00
parent 2f14cec307
commit 03ff6a98a6
@@ -297,6 +297,7 @@ public class ConditionalExpressionInspection extends BaseInspection {
}
final boolean nestedConditional = ParenthesesUtils.getParentSkipParentheses(expression) instanceof PsiConditionalExpression;
quickFixOnly |= nestedConditional;
if (quickFixOnly && !isOnTheFly()) return;
registerError(expression, quickFixOnly ? ProblemHighlightType.INFORMATION : ProblemHighlightType.GENERIC_ERROR_OR_WARNING,
!expressionContext, nestedConditional);
}