lint: fix issues in examples (#49)

This commit is contained in:
Michael McLoughlin
2019-01-13 10:12:52 -08:00
parent 943d5f0ced
commit 4aa8656eb0
11 changed files with 22 additions and 12 deletions

View File

@@ -11,7 +11,9 @@ import (
func TestHash64(t *testing.T) {
expect := func(data []byte) uint64 {
h := fnv.New64a()
h.Write(data)
if _, err := h.Write(data); err != nil {
t.Fatal(err)
}
return h.Sum64()
}
if err := quick.CheckEqual(Hash64, expect, nil); err != nil {