linter: fix nolintlint warnings (#6257)

This commit is contained in:
Callum Waters
2021-03-19 10:59:14 +01:00
committed by GitHub
parent dd84867e2b
commit 6f6083dae3
6 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ import (
func Sha256(bytes []byte) []byte {
hasher := sha256.New()
hasher.Write(bytes) //nolint:errcheck // ignore error
hasher.Write(bytes)
return hasher.Sum(nil)
}
+1 -1
View File
@@ -80,7 +80,7 @@ func (op ValueOp) Run(args [][]byte) ([][]byte, error) {
}
value := args[0]
hasher := tmhash.New()
hasher.Write(value) //nolint: errcheck // does not error
hasher.Write(value)
vhash := hasher.Sum(nil)
bz := new(bytes.Buffer)