Simplify conditionals
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
def7523398
commit
65a1ff84e6
@@ -44,7 +44,7 @@ class OverrideAutoConfigurationContextCustomizerFactory implements ContextCustom
|
||||
}
|
||||
OverrideAutoConfiguration overrideAutoConfiguration = TestContextAnnotationUtils.findMergedAnnotation(testClass,
|
||||
OverrideAutoConfiguration.class);
|
||||
boolean enabled = (overrideAutoConfiguration != null) ? overrideAutoConfiguration.enabled() : true;
|
||||
boolean enabled = overrideAutoConfiguration == null || overrideAutoConfiguration.enabled();
|
||||
return !enabled ? new DisableAutoConfigurationContextCustomizer() : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user