hash.go hash error covered and linter error fixed (#71)
* hash.go hash error covered and linter error fixed
Error covered without change function definition
* Update hash.go
diff --git a/hash.go b/hash.go
index b174616..b404f4b 100644
--- a/hash.go
+++ b/hash.go
@@ -26,8 +26,8 @@
// NewMD5 and NewSHA1.
func NewHash(h hash.Hash, space UUID, data []byte, version int) UUID {
h.Reset()
- h.Write(space[:])
- h.Write(data)
+ h.Write(space[:]) //nolint:errcheck
+ h.Write(data) //nolint:errcheck
s := h.Sum(nil)
var uuid UUID
copy(uuid[:], s)