mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Golint cleanup utils/crypto/sha*,cpu,md5
This commit is contained in:
@@ -151,7 +151,7 @@ func (d *digest) checkSum() [Size]byte {
|
||||
|
||||
/// Convenience functions
|
||||
|
||||
// Single caller sha256 helper
|
||||
// Sum256 - single caller sha256 helper
|
||||
func Sum256(data []byte) [Size]byte {
|
||||
var d digest
|
||||
d.Reset()
|
||||
@@ -159,7 +159,7 @@ func Sum256(data []byte) [Size]byte {
|
||||
return d.checkSum()
|
||||
}
|
||||
|
||||
// io.Reader based streaming sha256 helper
|
||||
// Sum - io.Reader based streaming sha256 helper
|
||||
func Sum(reader io.Reader) ([]byte, error) {
|
||||
h := New()
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user