0
0
Fork 0

simplify BooleanSearcher mustSearcher else logic

This commit is contained in:
Steve Yen 2016-09-20 12:21:53 -07:00
parent 949ea6397c
commit 46a46357a7
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}