Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Dec 22, 2022
1 parent abd1661 commit 1144329
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.ChunkedToXContent;
import org.elasticsearch.common.xcontent.ChunkedToXContentHelper;
import org.elasticsearch.xcontent.ToXContent;
import org.elasticsearch.xpack.core.ccr.AutoFollowStats;

Expand Down Expand Up @@ -87,7 +88,7 @@ public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params outerP
(builder, params) -> builder.startObject().field("auto_follow_stats", autoFollowStats, params).field("follow_stats")
),
followStats.toXContentChunked(outerParams),
Iterators.single((builder, params) -> builder.endObject())
ChunkedToXContentHelper.endObject()
);
}

Expand All @@ -103,7 +104,6 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(autoFollowStats, followStats);
}

}

}

0 comments on commit 1144329

Please sign in to comment.