mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 05:11:21 +00:00
Write doesn't need error checked
This commit is contained in:
committed by
Ethan Buchman
parent
d033470817
commit
478a10aa41
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user