aboutsummaryrefslogtreecommitdiff
path: root/sketch.go
diff options
context:
space:
mode:
Diffstat (limited to 'sketch.go')
-rw-r--r--sketch.go5
1 files changed, 1 insertions, 4 deletions
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]