Skip to content

Commit 01c4d62

Browse files
author
Vitaliy Boyko
committed
Clean up
1 parent ea4a1f6 commit 01c4d62

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/com/magento/idea/magento2plugin/inspections/xml/PluginDeclarationInspection.java

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,18 @@ public void visitFile(final PsiFile file) {
118118
if (pluginTypeDisabledAttribute != null
119119
&& pluginTypeDisabledAttribute.getValue() != null
120120
&& pluginTypeDisabledAttribute.getValue().equals("true")
121-
&& modulesWithSamePluginName.isEmpty()
122121
) {
123-
problemsHolder.registerProblem(
124-
pluginTypeNameAttribute.getValueElement(),
125-
inspectionBundle.message(
122+
if (modulesWithSamePluginName.isEmpty()) {
123+
problemsHolder.registerProblem(
124+
pluginTypeNameAttribute.getValueElement(),
125+
inspectionBundle.message(
126126
"inspection.plugin.disabledPluginDoesNotExist"
127-
),
128-
errorSeverity
129-
);
130-
}
131-
132-
if (pluginTypeDisabledAttribute != null
133-
&& pluginTypeDisabledAttribute.getValue() != null
134-
&& pluginTypeDisabledAttribute.getValue().equals("true")
135-
) {
136-
continue;
127+
),
128+
errorSeverity
129+
);
130+
} else {
131+
continue;
132+
}
137133
}
138134

139135
for (final Pair<String, String> moduleEntry: modulesWithSamePluginName) {

0 commit comments

Comments
 (0)