This commit is contained in:
Phillip Webb
2018-05-30 12:11:44 -07:00
parent 10589b90e4
commit 09fa1e7e11
9 changed files with 10 additions and 12 deletions

View File

@@ -51,10 +51,8 @@ class OnExpressionCondition extends SpringBootCondition {
boolean result = evaluateExpression(beanFactory, expression);
return new ConditionOutcome(result, messageBuilder.resultedIn(result));
}
else {
return ConditionOutcome
.noMatch(messageBuilder.because("no BeanFactory available."));
}
return ConditionOutcome
.noMatch(messageBuilder.because("no BeanFactory available."));
}
private Boolean evaluateExpression(ConfigurableListableBeanFactory beanFactory,