Skip to content

Commit

Permalink
apache#4873 support list group : format
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuQhahah committed Sep 26, 2024
1 parent 4e14f9d commit a0206a9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,8 @@ public static GroupDTO toDTO(Group group) {
.build();
}


public static GroupDTO[] toDTOs(Group[] groups){
if (ArrayUtils.isEmpty(groups)){
public static GroupDTO[] toDTOs(Group[] groups) {
if (ArrayUtils.isEmpty(groups)) {
return new GroupDTO[0];
}
return Arrays.stream(groups).map(DTOConverters::toDTO).toArray(GroupDTO[]::new);
Expand Down

0 comments on commit a0206a9

Please sign in to comment.