Skip to content

Commit

Permalink
Remove else block with the IllegalStateException
Browse files Browse the repository at this point in the history
  • Loading branch information
arteam committed Oct 19, 2021
1 parent 740eab3 commit afb592c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeTimeValue(taskMaxWaitingTime);
if (out.getVersion().onOrAfter(Version.V_7_16_0)) {
out.writeBoolean(return200ForClusterHealthTimeout);
} else if (return200ForClusterHealthTimeout) {
throw new IllegalArgumentException("Can't fix response code in a cluster involving nodes with version " + out.getVersion());
}
}

Expand Down

0 comments on commit afb592c

Please sign in to comment.