simplify BooleanSearcher mustSearcher else logic
This commit is contained in:
parent
949ea6397c
commit
46a46357a7
|
@ -124,7 +124,7 @@ func (s *BooleanSearcher) advanceNextMust(ctx *search.SearchContext, skipReturn
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
} else if s.mustSearcher == nil {
|
||||
} else {
|
||||
if s.currShould != skipReturn {
|
||||
ctx.DocumentMatchPool.Put(s.currShould)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue