add missing parentheses

This commit is contained in:
javanna 2016-05-06 15:53:30 +02:00 committed by Luca Cavanna
parent 530ad227a2
commit e7fe397c39
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public final class RestClient implements Closeable {
}
int statusCode = response.getStatusLine().getStatusCode();
//TODO make ignore status code configurable. rest-spec and tests support that parameter (ignore_missing)
if (statusCode < 300 || request.getMethod().equals(HttpHead.METHOD_NAME) && statusCode == 404) {
if (statusCode < 300 || (request.getMethod().equals(HttpHead.METHOD_NAME) && statusCode == 404) ) {
RequestLogger.log(logger, "request succeeded", request.getRequestLine(), connection.getHost(), response.getStatusLine());
connectionPool.onSuccess(connection);
return new ElasticsearchResponse(request.getRequestLine(), connection.getHost(), response);