diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-10 16:50:07 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-10 16:50:07 +0200 |
commit | 77a4e8d43c87d3582bc86696551f48cc47c688bb (patch) | |
tree | 39d9a86d415b0402fe58b622490ce4d518195ee7 /skate/zippy.go | |
parent | ea54e8231c9f6f4f3116b3b9a60074c3229257d6 (diff) | |
download | refcat-77a4e8d43c87d3582bc86696551f48cc47c688bb.tar.gz refcat-77a4e8d43c87d3582bc86696551f48cc47c688bb.zip |
add test cases
Diffstat (limited to 'skate/zippy.go')
-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 bd7bf70..1dbf6aa 100644 --- a/skate/zippy.go +++ b/skate/zippy.go @@ -319,7 +319,7 @@ func ZippyVerifyRefsOpenLibrary(olr, refs io.Reader, w io.Writer) error { // We can identify, which docs have been matched by checking the ref key and index. func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { var ( - enc = json.NewEncoder(w) + _ = 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 @@ -327,7 +327,7 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { // First, iterate over all matches and sort out duplicates, e.g. // docs that have the same source and target id. - uniqueBref, err := uniqueMatches(g.G0) + _, err := uniqueMatches(g.G0) if err != nil { return err } |