0
0

more golint fixes

This commit is contained in:
Marty Schoch 2016-10-02 11:46:27 -04:00
parent ce572091eb
commit 1b4ee737e0

View File

@ -104,7 +104,7 @@ func (s *Highlighter) BestFragmentsInField(dm *search.DocumentMatch, doc *docume
} }
// now find the N best non-overlapping fragments // now find the N best non-overlapping fragments
bestFragments := make([]*highlight.Fragment, 0) var bestFragments []*highlight.Fragment
if len(fq) > 0 { if len(fq) > 0 {
candidate := heap.Pop(&fq) candidate := heap.Pop(&fq)
OUTER: OUTER: