Skip to content

Commit

Permalink
del try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenke committed Mar 5, 2024
1 parent 7c33c4a commit d4dc637
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d4dc637

Please sign in to comment.