Update reaction.go to conform to lint revive

This commit is contained in:
RedCocoon 2024-11-02 03:21:39 +08:00
parent 98baaa2446
commit 5a49efbd3e

View File

@ -33,7 +33,6 @@ func AddReaction(ctx *context.Context, form *forms.ReactionForm, comment *conver
log.Trace("Reaction for issue created: %d/%d/%d", ctx.Repo.Repository.ID, issue.ID, reaction.ID)
} else if comment != nil {
reaction, err := conversation_service.CreateCommentReaction(ctx, ctx.Doer, comment, form.Content)
if err != nil {
if conversations_model.IsErrForbiddenConversationReaction(err) || errors.Is(err, user_model.ErrBlockedUser) {