Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,7 @@ void runIfNotCancelled(Runnable runnable) {
versionCheck.addListener(new ActionListener<Optional<String>>() {
@Override
public void onResponse(Optional<String> validation) {
if (validation.isEmpty()) {
if (validation.isPresent() == false) {
// Send the request and propagate cancellation
Cancellable call = client.performRequestAsync(request, listener);
cancellationForwarder.whenComplete((r, t) ->
Expand Down Expand Up @@ -2078,7 +2078,7 @@ private Response performClientRequest(Request request) throws IOException {
throw new ElasticsearchException(e);
}

if (versionValidation.isEmpty()) {
if (versionValidation.isPresent() == false) {
return client.performRequest(request);
} else {
throw new ElasticsearchException(versionValidation.get());
Expand Down