Write doesn't need error checked

This commit is contained in:
Zach Ramsay
2017-10-03 20:20:15 -04:00
committed by Ethan Buchman
parent d033470817
commit 478a10aa41
5 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@ func (part *Part) Hash() []byte {
return part.hash
} else {
hasher := ripemd160.New()
_, _ = hasher.Write(part.Bytes) // error ignored
hasher.Write(part.Bytes) // nolint: errcheck
part.hash = hasher.Sum(nil)
return part.hash
}