Skip to content

Commit

Permalink
removes redundant database close that will otherwise happy anyway in …
Browse files Browse the repository at this point in the history
…the finaly{} block, even if the return is called.
  • Loading branch information
holmbergius committed Dec 28, 2024
1 parent 5ff06db commit c61cd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/ecocean/MarkedIndividual.java
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ public void run() {
try {
MarkedIndividual indiv = bgShepherd.getMarkedIndividual(indivId);
if ((indiv == null) || (indiv.getEncounters() == null)) {
bgShepherd.rollbackAndClose();
//bgShepherd.rollbackAndClose();
executor.shutdown();
return;
}
Expand Down

0 comments on commit c61cd57

Please sign in to comment.