chore: fix all linting (#24101)

This commit is contained in:
Alex | Interchain Labs
2025-03-21 15:04:36 -07:00
committed by GitHub
parent b7fb7f4858
commit 7fd79df4e1
329 changed files with 1282 additions and 1251 deletions
@@ -6,7 +6,7 @@ import (
"bytes"
"testing"
bip39 "github.com/cosmos/go-bip39"
"github.com/cosmos/go-bip39"
"github.com/cosmos/cosmos-sdk/crypto/hd"
)
@@ -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))
})
}
@@ -10,6 +10,6 @@ import (
func FuzzTypesVerifyAddressFormat(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
types.VerifyAddressFormat(data)
_ = types.VerifyAddressFormat(data)
})
}
+2 -2
View File
@@ -13,7 +13,7 @@ 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)
})
}