Fix push failed because git hook detects "wrong error"

Signed-off-by: FluorineDog <guilin.gou@zilliz.com>
pull/4973/head^2
FluorineDog 2020-12-11 14:59:13 +08:00 committed by yefu.chen
parent d64aa37db3
commit e54d5ccf19
1 changed files with 3 additions and 3 deletions

View File

@ -291,9 +291,9 @@ func (ss *searchService) search(msg msgstream.TsMsg) error {
inReduced := make([]bool, len(searchResults))
numSegment := int64(len(searchResults))
err = reduceSearchResults(searchResults, numSegment, inReduced)
if err != nil {
return err
err2 := reduceSearchResults(searchResults, numSegment, inReduced)
if err2 != nil {
return err2
}
err = fillTargetEntry(plan, searchResults, matchedSegments, inReduced)
if err != nil {