From e158029b7fee005d803c7c3cc2bc6d251af65b0c Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 15 Jun 2021 03:25:20 +0200 Subject: zippy: extend the list --- skate/zippy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skate/zippy.go b/skate/zippy.go index b4f2804..beae483 100644 --- a/skate/zippy.go +++ b/skate/zippy.go @@ -323,7 +323,7 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { enc = json.NewEncoder(w) keyer = makeKeyFunc("\t", 1) grouper = func(g *zipkey.Group) error { - // g.G0 contains a matched docs for a given work id, g.G1 all raw + // g.G0 contains matched docs for a given work id, g.G1 all raw // refs, with the same work id. // First, iterate over all matches and sort out duplicates, e.g. @@ -343,7 +343,7 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { } refs[i] = &ref } - matchedRefsExtend(matched, refs) + matched = matchedRefsExtend(matched, refs) for _, bref := range matched { if err := enc.Encode(bref); err != nil { return err -- cgit v1.2.3