mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-09 09:23:07 +00:00
fix: do not use a var to hold hash
This commit is contained in:
parent
b20bf3dccd
commit
2d2fbc7e47
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user