aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuf Turhan Papurcu <yusufturhanp@gmail.com>2021-01-15 03:27:13 +0300
committerGitHub <noreply@github.com>2021-01-14 18:27:13 -0600
commitb5d0d36c983b13c35a93a356a9d2c14da0a1c3ab (patch)
tree89be1831c7ef207a04d20df90546b2b90dd9f18e
parent93777840becdb80e2f5e915fbd3ea9becd5f9718 (diff)
downloadgoogle-uuid-b5d0d36c983b13c35a93a356a9d2c14da0a1c3ab.tar.gz
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
-rw-r--r--hash.go4
1 files 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)