0
0
Fork 0

fix slice allocation to be size 0 cap len(fb.termsCount)

This commit is contained in:
Marty Schoch 2014-12-01 12:59:30 -05:00
parent 15fd80289e
commit efebc07106
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func (fb *TermsFacetBuilder) Result() *search.FacetResult {
Missing: fb.missing,
}
rv.Terms = make([]*search.TermFacet, len(fb.termsCount))
rv.Terms = make([]*search.TermFacet, 0, len(fb.termsCount))
for term, count := range fb.termsCount {
tf := &search.TermFacet{