From d4dc637c68cf5ba3e318cb159249f04791242d9f Mon Sep 17 00:00:00 2001 From: Jannik Steenken Date: Tue, 5 Mar 2024 10:55:16 +0100 Subject: [PATCH] del try catch --- .../theme/rs/internal/controllers/ImageRestController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java b/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java index e14dc18..0316273 100644 --- a/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java +++ b/src/main/java/org/tkit/onecx/theme/rs/internal/controllers/ImageRestController.java @@ -92,11 +92,8 @@ public Response uploadImage(Integer contentLength, String refId, RefTypeDTO refT @Override public Response deleteImagesById(String refId) { - try { - imageDAO.deleteQueryByRefId(refId); - } catch (Exception e) { - return Response.status(Response.Status.BAD_REQUEST).build(); - } + + imageDAO.deleteQueryByRefId(refId); return Response.status(Response.Status.NO_CONTENT).build(); }