Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Borys Tkachenko authored and Borys Tkachenko committed Jan 27, 2025
1 parent e9f9720 commit cde6570
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public Mono<Long> delete(@NonNull BatchDelete batchDelete) {

@Override
public Mono<Long> deleteByEntityIds(CommentDAO.EntityType entityType, Set<UUID> entityIds) {
if (entityIds.isEmpty()) {
return Mono.just(0L);
}
return commentDAO.deleteByEntityIds(entityType, entityIds);
}
}

0 comments on commit cde6570

Please # to comment.