mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-23 17:51:39 +00:00
linting: moar fixes
This commit is contained in:
committed by
Ethan Buchman
parent
d7cb291fb2
commit
a15c7f221d
@ -7,7 +7,7 @@ import (
|
||||
// doubleSha256 calculates sha256(sha256(b)) and returns the resulting bytes.
|
||||
func doubleSha256(b []byte) []byte {
|
||||
hasher := sha256.New()
|
||||
_, _ := hasher.Write(b) // error ignored
|
||||
_, _ = hasher.Write(b) // error ignored
|
||||
sum := hasher.Sum(nil)
|
||||
hasher.Reset()
|
||||
_, _ = hasher.Write(sum) // error ignored
|
||||
|
Reference in New Issue
Block a user