Removed redundant statements.

This commit is contained in:
Martijn van Groningen 2014-01-20 22:32:14 +01:00
parent bdb1992e85
commit 78590a8b6b
1 changed files with 0 additions and 5 deletions

View File

@ -71,8 +71,6 @@ public class RestPercolateAction extends BaseRestHandler {
percolateRequest.preference(restRequest.param("preference"));
percolateRequest.source(restRequest.content(), restRequest.contentUnsafe());
percolateRequest.routing(restRequest.param("routing"));
percolateRequest.preference(restRequest.param("preference"));
percolateRequest.indicesOptions(IndicesOptions.fromRequest(restRequest, percolateRequest.indicesOptions()));
executePercolate(percolateRequest, restRequest, restChannel);
}
@ -97,9 +95,6 @@ public class RestPercolateAction extends BaseRestHandler {
percolateRequest.preference(restRequest.param("percolate_preference"));
percolateRequest.source(restRequest.content(), restRequest.contentUnsafe());
percolateRequest.routing(restRequest.param("percolate_routing"));
percolateRequest.preference(restRequest.param("percolate_preference"));
percolateRequest.indicesOptions(IndicesOptions.fromRequest(restRequest, percolateRequest.indicesOptions()));
executePercolate(percolateRequest, restRequest, restChannel);
}