Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaol committed Dec 11, 2023
1 parent dd83cf3 commit 29afc7d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/service/question_common/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,7 @@ func (qs *QuestionCommon) Info(ctx context.Context, questionID string, loginUser
log.Error("AnswerFunc.SearchAnswered", err)
}
showinfo.Answered = len(ids) > 0

st := make([]string, 0)
for _, id := range ids {
st = append(st, id)
}
showinfo.AnswerIDs = st
showinfo.AnswerIDs = ids

collectedMap, err := qs.collectionCommon.SearchObjectCollected(ctx, loginUserID, []string{dbinfo.ID})
if err != nil {
Expand Down

0 comments on commit 29afc7d

Please sign in to comment.