1
0
mirror of https://github.com/google/uuid.git synced 2024-11-24 08:32:23 +02:00

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
This commit is contained in:
Yusuf Turhan Papurcu 2021-01-15 03:27:13 +03:00 committed by GitHub
parent 93777840be
commit b5d0d36c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)