-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 탐색 페이지 트랜딩 리스트 조회 API 구현 #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일부 내용에 대해 코멘트 남겨두었습니다!
확인 후 답글 부탁드려요~~
src/main/java/com/listywave/list/presentation/dto/response/ListTrandingResponse.java
Outdated
Show resolved
Hide resolved
.map(item -> item.getImageUrl()) | ||
.filter(url -> !url.isEmpty()) | ||
.findFirst() | ||
.orElse(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
만약 Item에 imageUrl 값이 존재하지 않으면 ""
로 저장되어 있는 걸로 알고 있습니다.
그렇다면 orElse()
문은 필요없을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 그러네요 알겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
동호님 혹시 orElse를 안하면 최종 결과가 Optional.empty()가 반환되는 거로 알고있어서그러는데 어떻게 해야할 까요.. orElse없이는 반환이 Optional이고 그냥 마지막에 get() 해야하나요
Description
Reference
Relation Issues