errcheck; sort some stuff out

This commit is contained in:
Zach Ramsay
2017-11-27 22:39:11 +00:00
committed by Ethan Buchman
parent 563faa98de
commit d7cb291fb2
26 changed files with 61 additions and 154 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func (part *Part) Hash() []byte {
return part.hash
} else {
hasher := ripemd160.New()
_, _ = hasher.Write(part.Bytes) // ignoring error
_, _ = hasher.Write(part.Bytes) // error ignored
part.hash = hasher.Sum(nil)
return part.hash
}