fix: do not use a var to hold hash

This commit is contained in:
Richard Ramos 2023-03-04 11:55:42 -04:00
parent b20bf3dccd
commit 2d2fbc7e47
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

View File

@ -17,9 +17,6 @@ func SHA256(data []byte) []byte {
}
defer sha256Pool.Put(h)
h.Reset()
var result [32]byte
h.Write(data)
h.Sum(result[:0])
return result[:]
return h.Sum(nil)
}