errcheck: PR comment fixes

This commit is contained in:
Zach Ramsay
2017-09-21 09:55:06 -04:00
committed by Ethan Buchman
parent b3c5933a23
commit b75d4f73e7
12 changed files with 34 additions and 58 deletions

View File

@ -36,7 +36,7 @@ func (part *Part) Hash() []byte {
hasher := ripemd160.New()
_, err := hasher.Write(part.Bytes)
if err != nil {
panic(err)
// ignore error
}
part.hash = hasher.Sum(nil)
return part.hash