File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
src/com/magento/idea/magento2plugin/inspections/xml Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -118,22 +118,18 @@ public void visitFile(final PsiFile file) {
118
118
if (pluginTypeDisabledAttribute != null
119
119
&& pluginTypeDisabledAttribute .getValue () != null
120
120
&& pluginTypeDisabledAttribute .getValue ().equals ("true" )
121
- && modulesWithSamePluginName .isEmpty ()
122
121
) {
123
- problemsHolder .registerProblem (
124
- pluginTypeNameAttribute .getValueElement (),
125
- inspectionBundle .message (
122
+ if (modulesWithSamePluginName .isEmpty ()) {
123
+ problemsHolder .registerProblem (
124
+ pluginTypeNameAttribute .getValueElement (),
125
+ inspectionBundle .message (
126
126
"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
+ }
137
133
}
138
134
139
135
for (final Pair <String , String > moduleEntry : modulesWithSamePluginName ) {
You can’t perform that action at this time.
0 commit comments