chore: enable errcheck linter (#16406)
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ import (
|
||||
|
||||
func FuzzTypesVerifyAddressFormat(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
types.VerifyAddressFormat(data)
|
||||
_ = types.VerifyAddressFormat(data)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user