linting errors: clean it all up

This commit is contained in:
Zach Ramsay
2017-09-21 10:56:42 -04:00
committed by Ethan Buchman
parent b75d4f73e7
commit 8f0237610e
12 changed files with 25 additions and 34 deletions

View File

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