chore: gofumpt (#11839)
* fumpt using main not master... * be more descriptive * fumpt * fix nits Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
bc2d553f77
commit
55054282d2
@@ -19,7 +19,6 @@ func TestInMemoryCreateLedger(t *testing.T) {
|
||||
kb := NewInMemory(cdc)
|
||||
|
||||
k, err := kb.SaveLedgerKey("some_account", hd.Secp256k1, "cosmos", 118, 3, 1)
|
||||
|
||||
if err != nil {
|
||||
require.Error(t, err)
|
||||
require.Equal(t, "ledger nano S: support for ledger devices is not available in this executable", err.Error())
|
||||
|
||||
@@ -255,7 +255,6 @@ func unMarshalLegacyInfo(bz []byte) (info LegacyInfo, err error) {
|
||||
|
||||
// privKeyFromLegacyInfo exports a private key from LegacyInfo
|
||||
func privKeyFromLegacyInfo(info LegacyInfo) (cryptotypes.PrivKey, error) {
|
||||
|
||||
switch linfo := info.(type) {
|
||||
case legacyLocalInfo:
|
||||
if linfo.PrivKeyArmor == "" {
|
||||
|
||||
@@ -229,6 +229,7 @@ func (s *MigrationTestSuite) TestMigrateErrEmptyItemData() {
|
||||
_, err := s.ks.migrate(n1)
|
||||
s.Require().EqualError(err, sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, n1).Error())
|
||||
}
|
||||
|
||||
func TestMigrationTestSuite(t *testing.T) {
|
||||
suite.Run(t, new(MigrationTestSuite))
|
||||
}
|
||||
|
||||
@@ -59,8 +59,7 @@ func TestAltSigningAlgoList_String(t *testing.T) {
|
||||
require.Equal(t, fmt.Sprintf("%s,notSupported", hd.Secp256k1Type), list.String())
|
||||
}
|
||||
|
||||
type notSupportedAlgo struct {
|
||||
}
|
||||
type notSupportedAlgo struct{}
|
||||
|
||||
func (n notSupportedAlgo) Name() hd.PubKeyType {
|
||||
return "notSupported"
|
||||
|
||||
Reference in New Issue
Block a user