diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 03:25:20 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 03:25:20 +0200 |
commit | e158029b7fee005d803c7c3cc2bc6d251af65b0c (patch) | |
tree | f5922f6c63ca2d498250129116a902ca0a875c30 /skate | |
parent | 23910bdad2983a4b79aa2b5a1d36d3d0822cb06d (diff) | |
download | refcat-e158029b7fee005d803c7c3cc2bc6d251af65b0c.tar.gz refcat-e158029b7fee005d803c7c3cc2bc6d251af65b0c.zip |
zippy: extend the list
Diffstat (limited to 'skate')
-rw-r--r-- | skate/zippy.go | 4 |
1 files 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 |