Skip to content

Commit

Permalink
Merge pull request #90 from KUSITMS-27th-TEAM3/feat/comment
Browse files Browse the repository at this point in the history
[refactor] ๋Œ€๋Œ“๊ธ€ ํ•˜๋‚˜๋งŒ ๋ฐ›์•„์™€์ง€๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ
  • Loading branch information
isprogrammingfun authored May 24, 2023
2 parents a9e618e + 4331d41 commit 3ff6a0a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ private SliceResponse<CommentInfoResponse> getSliceResponseAboutCommentInfoRespo
commentInfoResponseMap.put(commentInfoResponse.getCommentId(), commentInfoResponse);
if (comment.getParent() != null) {
CommentInfoResponse parentInfoResponse = commentInfoResponseMap.get(comment.getParent().getId());
parentInfoResponse.setChild(new ArrayList<>());
if (parentInfoResponse.getChild() == null) {
parentInfoResponse.setChild(new ArrayList<>());
}
parentInfoResponse.getChild().add(commentInfoResponse);
} else {
commentInfoResponseList.add(commentInfoResponse);
Expand Down

0 comments on commit 3ff6a0a

Please sign in to comment.