Skip to content

Commit

Permalink
[refac] change variable name (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 authored Nov 14, 2024
1 parent 963655d commit ee814a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import java.util.List;

public record MenusPostResponse(
List<MenuPostResponse> menuList
List<MenuPostResponse> menus
) {
public static MenusPostResponse of(List<Menu> menus) {
List<MenuPostResponse> menuResponses = menus.stream()
.map(MenuPostResponse::of)
.toList();
return new MenusPostResponse(menuResponses);
}
}
}

0 comments on commit ee814a3

Please sign in to comment.