Skip to content

Commit

Permalink
PR Feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <[email protected]>
  • Loading branch information
nknize committed Feb 24, 2022
1 parent 88ccab9 commit 1a1c3e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/src/main/java/org/opensearch/client/Requests.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public static IndexRequest indexRequest() {

/**
* Create an index request against a specific index.
* Note that setting {@link IndexRequest#id(String)} is optional.
*
* @param index The index name to index the request against
* @return The index request
Expand All @@ -109,6 +110,7 @@ public static IndexRequest indexRequest(String index) {

/**
* Creates a delete request against a specific index.
* Note that {@link DeleteRequest#id(String)} must be set.
*
* @param index The index name to delete from
* @return The delete request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public void testValidation() {
}

{
// Empty types are accepted but fail validation
final DeleteRequest request = new DeleteRequest("index4", null);
final ActionRequestValidationException validate = request.validate();

Expand Down

0 comments on commit 1a1c3e2

Please sign in to comment.