Skip to content

Commit

Permalink
#2878: damn you sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
uweschaefer committed Jun 13, 2024
1 parent 8cd77c3 commit 8d31e6e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,10 @@ public void doApply(@NonNull List<Fact> facts) {
} // end loop

try {
if (projection instanceof TransactionAware)
// this is something we only do, if the whole batch was successfully applied
if (latestSuccessful != null) {
setFactStreamPositionIfAware(latestSuccessful);
}
// this is something we only do, if the whole batch was successfully applied
if (projection instanceof TransactionAware && latestSuccessful != null) {
setFactStreamPositionIfAware(latestSuccessful);
}
} catch (Exception e) {

rollbackIfTransactional();
Expand Down

0 comments on commit 8d31e6e

Please sign in to comment.