From b5d0d36c983b13c35a93a356a9d2c14da0a1c3ab Mon Sep 17 00:00:00 2001 From: Yusuf Turhan Papurcu Date: Fri, 15 Jan 2021 03:27:13 +0300 Subject: [PATCH] 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 --- hash.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hash.go b/hash.go index b174616..b404f4b 100644 --- a/hash.go +++ b/hash.go @@ -26,8 +26,8 @@ var ( // 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)