Skip to content

Commit

Permalink
style(controller/comments/user.go): reformat file
Browse files Browse the repository at this point in the history
  • Loading branch information
WAAutoMaton committed May 11, 2024
1 parent 612fc22 commit d8fae85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controllers/comments/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func GenerateResponse(comments []models.Comment, uid uint, likeResult []CommentL
currentUser, err := queries.GetUserByID(nil, uid)
if err != nil {
c.Reward = -2
}else if !currentUser.IsAdmin && !currentUser.IsCommunityAdmin {
} else if !currentUser.IsAdmin && !currentUser.IsCommunityAdmin {
c.Reward = -1
}
if !anonymous || v.User.ID == uid {
Expand Down

0 comments on commit d8fae85

Please sign in to comment.