Skip to content

Commit

Permalink
deef
Browse files Browse the repository at this point in the history
  • Loading branch information
romseygeek committed Sep 28, 2023
1 parent f155e33 commit 9faf928
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public class IndexAction extends ActionType<DocWriteResponse> {
public static final String NAME = "indices:data/write/index";

private IndexAction() {
super(NAME, in -> { throw new UnsupportedOperationException(); });
super(NAME, in -> {
assert false : "Might not be an IndexResponse!";
return new IndexResponse(in);
});
}
}

0 comments on commit 9faf928

Please sign in to comment.