Skip to content

Commit

Permalink
hash.go hash error covered and linter error fixed (#71)
Browse files Browse the repository at this point in the history
* hash.go hash error covered and linter error fixed

Error covered without change function definition

* Update hash.go
  • Loading branch information
yusufpapurcu committed Jan 15, 2021
1 parent 9377784 commit b5d0d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hash.go
Expand Up @@ -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)
Expand Down

0 comments on commit b5d0d36

Please sign in to comment.