Commit 7b3dde21 authored by Anton Lobov's avatar Anton Lobov
Browse files

IDEA-CR-43602 fix typo in condition

parent f33afb89
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -75,7 +75,7 @@ public class JsonDuplicatePropertyKeysInspection extends LocalInspectionTool {
for (Map.Entry<String, Collection<PsiElement>> entry : keys.entrySet()) {
final Collection<PsiElement> sameNamedKeys = entry.getValue();
final String entryKey = entry.getKey();
if (sameNamedKeys.size() > 1 && !(isSchemaFile || !COMMENT.equalsIgnoreCase(entryKey))) {
if (sameNamedKeys.size() > 1 && (!isSchemaFile || !COMMENT.equalsIgnoreCase(entryKey))) {
for (PsiElement element : sameNamedKeys) {
holder.registerProblem(element, JsonBundle.message("inspection.duplicate.keys.msg.duplicate.keys", entryKey),
new NavigateToDuplicatesFix(sameNamedKeys, element, entryKey));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment