Skip to content

Commit

Permalink
perf: AnswerIndex 返回空数组
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 committed Dec 26, 2024
1 parent 0f7cb32 commit 17daf3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/find_answer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func FillAnswerResponse(answers [][]string, req *model.SearchRequest) model.Sear
ans := answers[0][randomIndex]
resp.Answer.AllAnswer = [][]string{}
resp.Answer.BestAnswer = []string{ans}
resp.Answer.AnswerIndex = []int{}
return resp
}

Expand Down

0 comments on commit 17daf3b

Please sign in to comment.