Justman100 commented on code in PR #785:
URL: https://github.com/apache/incubator-answer/pull/785#discussion_r1504087845


##########
internal/service/question_service.go:
##########
@@ -242,15 +233,6 @@ func (qs *QuestionService) HasNewTag(ctx context.Context, 
tags []*schema.TagItem
 
 // AddQuestion add question
 func (qs *QuestionService) AddQuestion(ctx context.Context, req 
*schema.QuestionAdd) (questionInfo any, err error) {
-       if len(req.Tags) == 0 {
-               errorlist := make([]*validator.FormErrorField, 0)
-               errorlist = append(errorlist, &validator.FormErrorField{
-                       ErrorField: "tags",
-                       ErrorMsg:   translator.Tr(handler.GetLangByCtx(ctx), 
reason.TagNotFound),
-               })
-               err = errors.BadRequest(reason.RecommendTagEnter)
-               return errorlist, err
-       }

Review Comment:
   Like i said



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to