Skip to content

Commit

Permalink
Add a return to the catch to explicitly exit the method if there is a…
Browse files Browse the repository at this point in the history
…n exception
  • Loading branch information
bikegeek committed Aug 19, 2024
1 parent b968e96 commit a439b63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions java/edu/ucar/metviewer/MVServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) {
handleClearListStatCache();
} catch (ParserConfigurationException e) {
logger.error(e.getMessage());
} catch (Exception e){
logger.error(e.getMessage());
return;
}
}

Expand Down

0 comments on commit a439b63

Please sign in to comment.