File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/rest-high-level/src/main/java/org/elasticsearch/client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2043,7 +2043,7 @@ void runIfNotCancelled(Runnable runnable) {
20432043 versionCheck .addListener (new ActionListener <Optional <String >>() {
20442044 @ Override
20452045 public void onResponse (Optional <String > validation ) {
2046- if (validation .isEmpty () ) {
2046+ if (validation .isPresent () == false ) {
20472047 // Send the request and propagate cancellation
20482048 Cancellable call = client .performRequestAsync (request , listener );
20492049 cancellationForwarder .whenComplete ((r , t ) ->
@@ -2078,7 +2078,7 @@ private Response performClientRequest(Request request) throws IOException {
20782078 throw new ElasticsearchException (e );
20792079 }
20802080
2081- if (versionValidation .isEmpty () ) {
2081+ if (versionValidation .isPresent () == false ) {
20822082 return client .performRequest (request );
20832083 } else {
20842084 throw new ElasticsearchException (versionValidation .get ());
You can’t perform that action at this time.
0 commit comments