File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ type CommentResponse struct {
3333}
3434
3535// toCommentResponse converts a domain Comment to an API response.
36- func toCommentResponse (comment * comments.Comment ) * CommentResponse {
37- return & CommentResponse {
36+ func toCommentResponse (comment * comments.Comment ) CommentResponse {
37+ return CommentResponse {
3838 ID : comment .ID ,
3939 Author : dto.UserBrief {
4040 ID : comment .AuthorID ,
@@ -52,7 +52,7 @@ func toCommentResponse(comment *comments.Comment) *CommentResponse {
5252func toCommentsList (items []comments.Comment ) []CommentResponse {
5353 comments := make ([]CommentResponse , 0 , len (items ))
5454 for _ , item := range items {
55- comments = append (comments , * toCommentResponse (& item ))
55+ comments = append (comments , toCommentResponse (& item ))
5656 }
5757
5858 return comments
You can’t perform that action at this time.
0 commit comments