Fix after merge

This commit is contained in:
David Pilato 2016-08-09 12:34:52 +02:00
parent 2a05030e22
commit d28cc73046
1 changed files with 0 additions and 2 deletions

View File

@ -131,7 +131,6 @@ public class ListTasksResponse extends BaseTasksResponse implements ToXContent {
@Override @Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (getTaskFailures() != null && getTaskFailures().size() > 0) { if (getTaskFailures() != null && getTaskFailures().size() > 0) {
builder.startArray("task_failures"); builder.startArray("task_failures");
for (TaskOperationFailure ex : getTaskFailures()){ for (TaskOperationFailure ex : getTaskFailures()){
@ -195,7 +194,6 @@ public class ListTasksResponse extends BaseTasksResponse implements ToXContent {
} }
builder.endObject(); builder.endObject();
} }
builder.endObject();
return builder; return builder;
} }