Skip to content

Commit b5d0d36

Browse files
authored
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
1 parent 9377784 commit b5d0d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hash.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ var (
2626
// NewMD5 and NewSHA1.
2727
func NewHash(h hash.Hash, space UUID, data []byte, version int) UUID {
2828
h.Reset()
29-
h.Write(space[:])
30-
h.Write(data)
29+
h.Write(space[:]) //nolint:errcheck
30+
h.Write(data) //nolint:errcheck
3131
s := h.Sum(nil)
3232
var uuid UUID
3333
copy(uuid[:], s)

0 commit comments

Comments
 (0)