Skip to content

Commit

Permalink
[fix] 반환값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghee0820 committed Nov 15, 2024
1 parent d8f18ef commit 77b4ba0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public static MenuInfos of(
LocalDateTime menuUpdatedAt) {
menuImgUrls = menuImgUrls.stream()
.filter(url -> url != null && url.isBlank())
.toList();
.toList()
.isEmpty() ? null : menuImgUrls;
List<MenuInfo> menuList = menus.stream()
.map(menu -> new MenuInfo(menu.getPrice(), menu.isRecommend(),
menu.getMenuName(), menu.getMenuImgUrl().trim(), menu.getDescription()))
Expand Down

0 comments on commit 77b4ba0

Please sign in to comment.