Remove function name from ShaHash error message.

This makes golint happy.
This commit is contained in:
Dave Collins 2014-04-21 10:53:22 -05:00
parent 8857485fa8
commit 2cc89bbf5b

View file

@ -47,8 +47,8 @@ func (hash *ShaHash) Bytes() []byte {
func (hash *ShaHash) SetBytes(newHash []byte) error {
nhlen := len(newHash)
if nhlen != HashSize {
return fmt.Errorf("ShaHash: invalid sha length of %v, want %v",
nhlen, HashSize)
return fmt.Errorf("invalid sha length of %v, want %v", nhlen,
HashSize)
}
copy(hash[:], newHash[0:HashSize])