chore: enable errcheck linter (#16406)

This commit is contained in:
ruthishvitwit
2023-07-12 08:58:27 +00:00
committed by GitHub
parent c5df6a355a
commit fd7e549a3c
140 changed files with 1019 additions and 617 deletions
@@ -30,6 +30,6 @@ func FuzzCryptoHDDerivePrivateKeyForPath(f *testing.F) {
}
seed := mnemonicToSeed(string(mnemonic))
master, ch := hd.ComputeMastersFromSeed(seed)
hd.DerivePrivateKeyForPath(master, ch, string(path))
_, _ = hd.DerivePrivateKeyForPath(master, ch, string(path))
})
}
@@ -10,6 +10,6 @@ import (
func FuzzCryptoHDNewParamsFromPath(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
hd.NewParamsFromPath(string(data))
_, _ = hd.NewParamsFromPath(string(data))
})
}
+1 -1
View File
@@ -10,6 +10,6 @@ import (
func FuzzTypesParseCoin(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
types.ParseCoinNormalized(string(data))
_, _ = types.ParseCoinNormalized(string(data))
})
}
+1 -1
View File
@@ -10,6 +10,6 @@ import (
func FuzzTypesParseDecCoin(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
types.ParseDecCoin(string(data))
_, _ = types.ParseDecCoin(string(data))
})
}
+1 -1
View File
@@ -10,6 +10,6 @@ import (
func FuzzTypesVerifyAddressFormat(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
types.VerifyAddressFormat(data)
_ = types.VerifyAddressFormat(data)
})
}
+3 -2
View File
@@ -13,7 +13,8 @@ func FuzzUnknownProto(f *testing.F) {
f.Fuzz(func(t *testing.T, b []byte) {
msg := new(testdata.TestVersion2)
resolver := new(unknownproto.DefaultAnyResolver)
unknownproto.RejectUnknownFields(b, msg, true, resolver)
unknownproto.RejectUnknownFields(b, msg, false, resolver)
_, _ = unknownproto.RejectUnknownFields(b, msg, true, resolver)
_, _ = unknownproto.RejectUnknownFields(b, msg, false, resolver)
})
}