diff options
author | Yusuf Turhan Papurcu <yusufturhanp@gmail.com> | 2021-01-15 03:27:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 18:27:13 -0600 |
commit | b5d0d36c983b13c35a93a356a9d2c14da0a1c3ab (patch) | |
tree | 89be1831c7ef207a04d20df90546b2b90dd9f18e | |
parent | 93777840becdb80e2f5e915fbd3ea9becd5f9718 (diff) | |
download | google-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |