Remove function name from ShaHash error message.
This makes golint happy.
This commit is contained in:
parent
8857485fa8
commit
2cc89bbf5b
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue