mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fix typo in erasure-utils.go
This commit is contained in:
parent
5878fcc086
commit
855ef4f1aa
@ -47,14 +47,14 @@ func newHash(algo string) (h hash.Hash) {
|
|||||||
case "blake2b":
|
case "blake2b":
|
||||||
// ignore the error, because New512 without a key never fails
|
// ignore the error, because New512 without a key never fails
|
||||||
// New512 only returns a non-nil error, if the length of the passed
|
// New512 only returns a non-nil error, if the length of the passed
|
||||||
// key > 64 bytes - but we use blake2b as hash fucntion (no key)
|
// key > 64 bytes - but we use blake2b as hash function (no key)
|
||||||
h, _ = blake2b.New512(nil)
|
h, _ = blake2b.New512(nil)
|
||||||
// Add new hashes here.
|
// Add new hashes here.
|
||||||
default:
|
default:
|
||||||
// Default to blake2b.
|
// Default to blake2b.
|
||||||
// ignore the error, because New512 without a key never fails
|
// ignore the error, because New512 without a key never fails
|
||||||
// New512 only returns a non-nil error, if the length of the passed
|
// New512 only returns a non-nil error, if the length of the passed
|
||||||
// key > 64 bytes - but we use blake2b as hash fucntion (no key)
|
// key > 64 bytes - but we use blake2b as hash function (no key)
|
||||||
h, _ = blake2b.New512(nil)
|
h, _ = blake2b.New512(nil)
|
||||||
}
|
}
|
||||||
return h
|
return h
|
||||||
|
Loading…
Reference in New Issue
Block a user