Skip to content

Commit f53a952

Browse files
committed
Remove duplicate statement
1 parent 2fdb77a commit f53a952

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/ui/ErrorController.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ public ResponseEntity<ApiResponse<Object>> error(HttpServletRequest request, Htt
102102
return ApiResponse.fail("bad request");
103103
}
104104

105-
if (exception.isPresent() && exception.get() instanceof RequestRejectedException) {
106-
return ApiResponse.fail("bad request");
107-
}
108-
109105
Object status = request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);
110106
if (status != null) {
111107
int statusCode = Integer.parseInt(status.toString());

0 commit comments

Comments
 (0)