Skip to content

Commit 69181c1

Browse files
committed
formatting
1 parent df2ba5c commit 69181c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spring-cloud-context/src/main/java/org/springframework/cloud/health/RefreshScopeHealthIndicator.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,18 @@ public RefreshScopeHealthIndicator(ObjectProvider<RefreshScope> scope,
4646
@Override
4747
protected void doHealthCheck(Builder builder) throws Exception {
4848
RefreshScope refreshScope = this.scope.getIfAvailable();
49-
if(refreshScope != null) {
49+
if (refreshScope != null) {
5050
Map<String, Exception> errors = new HashMap<>(refreshScope.getErrors());
5151
errors.putAll(this.rebinder.getErrors());
5252
if (errors.isEmpty()) {
5353
builder.up();
54-
} else {
54+
}
55+
else {
5556
builder.down();
5657
if (errors.size() == 1) {
5758
builder.withException(errors.values().iterator().next());
58-
} else {
59+
}
60+
else {
5961
for (String name : errors.keySet()) {
6062
builder.withDetail(name, errors.get(name));
6163
}

0 commit comments

Comments
 (0)