Skip to content

Commit

Permalink
missing sonar checkstyle recommendations (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
elefeint authored Mar 22, 2022
1 parent 9ee17a0 commit 8341ac3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Consumer;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import org.springframework.boot.actuate.health.Health;
import org.springframework.util.Assert;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ public HealthContributor pubSubHealthContributor(Map<String, PubSubTemplate> pub

@Override
protected PubSubHealthIndicator createIndicator(PubSubTemplate pubSubTemplate) {
PubSubHealthIndicator indicator =
new PubSubHealthIndicator(
return new PubSubHealthIndicator(
pubSubTemplate,
this.pubSubHealthProperties.getSubscription(),
this.pubSubHealthProperties.getTimeoutMillis(),
this.pubSubHealthProperties.isAcknowledgeMessages());
return indicator;
}
}

0 comments on commit 8341ac3

Please sign in to comment.