mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Add strict checks with vet, golint and gofmt
This commit is contained in:
@@ -107,11 +107,10 @@ func (d *digest) Write(p []byte) (nn int, err error) {
|
||||
}
|
||||
|
||||
// Calculate sha512
|
||||
func (d0 *digest) Sum(in []byte) []byte {
|
||||
func (d *digest) Sum(in []byte) []byte {
|
||||
// Make a copy of d0 so that caller can keep writing and summing.
|
||||
d := new(digest)
|
||||
*d = *d0
|
||||
hash := d.checkSum()
|
||||
d0 := *d
|
||||
hash := d0.checkSum()
|
||||
return append(in, hash[:]...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user