From 2cd98a3bcd18870da4404693212119dd8ccfaf68 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Sat, 28 Aug 2021 20:54:34 +0200 Subject: refactor(chunks): use more interfaces --- sketch.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sketch.go') diff --git a/sketch.go b/sketch.go index f226661..db7e4e6 100644 --- a/sketch.go +++ b/sketch.go @@ -20,10 +20,7 @@ func SketchChunk(chunk Chunk, wSize int, sfCount int, fCount int) (Sketch, error superfeatures := make([]uint64, 0, sfCount) features := make([]uint64, 0, fCount) buff := make([]byte, fBytes*fCount) - r, err := chunk.Reader() - if err != nil { - return nil, err - } + r := chunk.Reader() hasher := rabinkarp64.New() for sf := 0; sf < sfCount; sf++ { features = features[:0] -- cgit v1.2.3