From 1b4ee737e043d95f6755ee2851660017554ed539 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Sun, 2 Oct 2016 11:46:27 -0400 Subject: [PATCH] more golint fixes --- search/highlight/highlighter/simple/highlighter_simple.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/highlight/highlighter/simple/highlighter_simple.go b/search/highlight/highlighter/simple/highlighter_simple.go index 40a1dba4..3815c8e1 100644 --- a/search/highlight/highlighter/simple/highlighter_simple.go +++ b/search/highlight/highlighter/simple/highlighter_simple.go @@ -104,7 +104,7 @@ func (s *Highlighter) BestFragmentsInField(dm *search.DocumentMatch, doc *docume } // now find the N best non-overlapping fragments - bestFragments := make([]*highlight.Fragment, 0) + var bestFragments []*highlight.Fragment if len(fq) > 0 { candidate := heap.Pop(&fq) OUTER: