Skip to content

Commit

Permalink
Merge pull request #222 from kakao-tech-campus-2nd-step3/HOTFIX/#218-…
Browse files Browse the repository at this point in the history
…menu-imgaes-fix

[�Fix] 반환값 변경
  • Loading branch information
sanghee0820 authored Nov 15, 2024
2 parents fe7ae88 + 77b4ba0 commit 7d6d94f
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 7d6d94f

Please sign in to comment.