Skip to content

Commit

Permalink
Eliminate unnecessary merge()
Browse files Browse the repository at this point in the history
  • Loading branch information
quaff committed Mar 19, 2024
1 parent a3cf247 commit 372f10c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void delete(T entity) {
return;
}

entityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));
entityManager.remove(existing);
}

@Override
Expand Down

0 comments on commit 372f10c

Please sign in to comment.