Skip to content

Commit a7e8829

Browse files
committed
Polish
1 parent 5ad4de1 commit a7e8829

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cassandra/CassandraHealthIndicator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public CassandraHealthIndicator(CassandraOperations cassandraOperations) {
5757

5858
@Override
5959
protected void doHealthCheck(Health.Builder builder) throws Exception {
60-
SimpleStatement select = SimpleStatement.newInstance("SELECT release_version FROM system.local");
61-
ResultSet results = this.cassandraOperations.getCqlOperations().queryForResultSet(select);
60+
ResultSet results = this.cassandraOperations.getCqlOperations().queryForResultSet(SELECT);
6261
if (results.isFullyFetched()) {
6362
builder.up();
6463
return;

0 commit comments

Comments
 (0)