Skip to content

Commit

Permalink
fumpt (#12376)
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat authored Jun 28, 2022
1 parent abf3b18 commit 9d280ac
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 23 deletions.
8 changes: 5 additions & 3 deletions depinject/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ type Duck interface {
quack()
}

type Mallard struct{}
type Canvasback struct{}
type Marbled struct{}
type (
Mallard struct{}
Canvasback struct{}
Marbled struct{}
)

func (duck Mallard) quack() {}
func (duck Canvasback) quack() {}
Expand Down
1 change: 0 additions & 1 deletion depinject/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func (err ErrNoTypeForExplicitBindingFound) Error() string {
return fmt.Sprintf("No type for explicit binding found. Given the explicit interface binding %s, a provider of type %s was not found.",
err.Interface, err.Implementation)
}

}

func duplicateDefinitionError(typ reflect.Type, duplicateLoc Location, existingLoc string) error {
Expand Down
1 change: 0 additions & 1 deletion simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ func NewSimApp(
logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, encodingConfig simappparams.EncodingConfig,
appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp),
) *SimApp {

var (
appBuilder *runtime.AppBuilder
app = &SimApp{invCheckPeriod: invCheckPeriod}
Expand Down
1 change: 0 additions & 1 deletion x/auth/tx/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func provideModule(in txInputs) txOutputs {
txConfig := tx.NewTxConfig(in.ProtoCodecMarshaler, tx.DefaultSignModes)

baseAppOption := func(app *baseapp.BaseApp) {

// AnteHandlers
if !in.Config.SkipAnteHandler {
anteHandler, err := newAnteHandler(txConfig, in)
Expand Down
4 changes: 2 additions & 2 deletions x/auth/tx/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ func (s IntegrationTestSuite) TestGetTxEvents_GRPC() {
"with pagination",
&tx.GetTxsEventRequest{
Events: []string{bankMsgSendEventAction},
Page: 2,
Limit: 2,
Page: 2,
Limit: 2,
},
false, "", 1,
},
Expand Down
2 changes: 0 additions & 2 deletions x/authz/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,9 @@ func (k Keeper) GranterGrants(c context.Context, req *authz.QueryGranterGrantsRe
Authorization: any,
Expiration: auth.Expiration,
}, nil

}, func() *authz.Grant {
return &authz.Grant{}
})

if err != nil {
return nil, err
}
Expand Down
1 change: 0 additions & 1 deletion x/bank/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func RandomGenesisBalances(simState *module.SimulationState) []types.Balance {

// RandomizedGenState generates a random GenesisState for bank
func RandomizedGenState(simState *module.SimulationState) {

var defaultSendEnabledParam bool
simState.AppParams.GetOrGenerate(
simState.Cdc, string(types.KeyDefaultSendEnabled), &defaultSendEnabledParam, simState.Rand,
Expand Down
6 changes: 2 additions & 4 deletions x/bank/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ import (
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)

var (
// DefaultDefaultSendEnabled is the value that DefaultSendEnabled will have from DefaultParams().
DefaultDefaultSendEnabled = true
)
// DefaultDefaultSendEnabled is the value that DefaultSendEnabled will have from DefaultParams().
var DefaultDefaultSendEnabled = true

var (
// KeySendEnabled is store's key for SendEnabled Params
Expand Down
1 change: 0 additions & 1 deletion x/distribution/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ type validator struct {

// Context in https://github.com/cosmos/cosmos-sdk/issues/9161
func TestVerifyProposerRewardAssignement(t *testing.T) {

var (
bankKeeper bankkeeper.Keeper
stakingKeeper *stakingkeeper.Keeper
Expand Down
1 change: 0 additions & 1 deletion x/group/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type TestSuite struct {
}

func (s *TestSuite) SetupTest() {

app, err := simtestutil.Setup(
grouptestutil.AppConfig,
&s.interfaceRegistry,
Expand Down
1 change: 0 additions & 1 deletion x/group/module/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func TestIntegrationTestSuite(t *testing.T) {
}

func (s *IntegrationTestSuite) SetupTest() {

app, err := simtestutil.Setup(
grouptestutil.AppConfig,
&s.interfaceRegistry,
Expand Down
5 changes: 1 addition & 4 deletions x/nft/keeper/nft_batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (s *TestSuite) TestBatchMint() {
{
"faild with not exist class",
func(tokens []nft.NFT) {
//do nothing
// do nothing
},
[]nft.NFT{
{ClassId: "classID1", Id: "nftID1"},
Expand Down Expand Up @@ -197,7 +197,6 @@ func (s *TestSuite) TestBatchBurn() {
s.Require().Error(err)
})
}

}

func (s *TestSuite) TestBatchUpdate() {
Expand Down Expand Up @@ -266,7 +265,6 @@ func (s *TestSuite) TestBatchUpdate() {
s.Require().Error(err)
})
}

}

func (s *TestSuite) TestBatchTransfer() {
Expand Down Expand Up @@ -333,7 +331,6 @@ func (s *TestSuite) TestBatchTransfer() {
s.Require().Error(err)
})
}

}

func groupByClassID(tokens []nft.NFT) map[string][]nft.NFT {
Expand Down
1 change: 0 additions & 1 deletion x/nft/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ func SimulateMsgSend(
[]uint64{senderAcc.GetSequence()},
sender.PrivKey,
)

if err != nil {
return simtypes.NoOpMsg(nft.ModuleName, TypeMsgSend, "unable to generate mock tx"), nil, err
}
Expand Down

0 comments on commit 9d280ac

Please sign in to comment.