Skip to content

Commit

Permalink
fix: Remove unused Exceptions throws
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Sep 7, 2024
1 parent 220187f commit bcb8516
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ public class RestTaskDeleteAction {
*
* @param request The RestRequest containing the task ID.
* @return The DeleteRequest to delete the task.
* @throws IOException If an I/O error occurs.
*/
public static DeleteRequest deleteRequest(RestRequest request) throws IOException {
public static DeleteRequest deleteRequest(RestRequest request) {
return new DeleteRequest(Task.TASK_INDEX, request.param("id"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public class RestTaskGetAction {
*
* @param request The RestRequest containing the task ID.
* @return The GetRequest to retrieve the task.
* @throws IOException If an I/O error occurs.
*/
public static GetRequest getRequest(RestRequest request) throws IOException {
public static GetRequest getRequest(RestRequest request) {
GetRequest getRequest = new GetRequest(Task.TASK_INDEX, request.param("id"));
getRequest.fetchSourceContext(FetchSourceContext.parseFromRestRequest(request));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ public List<Route> routes() {
* @param request The RestRequest containing the details of the request.
* @param client The NodeClient to execute the request.
* @return A RestChannelConsumer to handle the request.
* @throws IOException If an I/O error occurs.
*/
@Override
protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {
protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) {
try {
switch (request.method()) {
case POST:
Expand Down

0 comments on commit bcb8516

Please sign in to comment.