Skip to content

Commit

Permalink
Remove redundant null check in ExecutionEntityManagerImpl#deleteChild…
Browse files Browse the repository at this point in the history
…Executions.
  • Loading branch information
PascalSchumacher authored and filiphr committed Mar 7, 2020
1 parent 6bc0e8c commit 9af2558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ public void deleteChildExecutions(ExecutionEntity executionEntity, Collection<St
for (int i = childExecutions.size() - 1; i >= 0; i--) {
ExecutionEntity childExecutionEntity = childExecutions.get(i);
if (!childExecutionEntity.isEnded()) {
if (executionIdsNotToDelete == null || (executionIdsNotToDelete != null && !executionIdsNotToDelete.contains(childExecutionEntity.getId()))) {
if (executionIdsNotToDelete == null || !executionIdsNotToDelete.contains(childExecutionEntity.getId())) {

if (childExecutionEntity.isProcessInstanceType()) {
deleteProcessInstanceExecutionEntity(childExecutionEntity.getId(),
Expand Down

0 comments on commit 9af2558

Please sign in to comment.