Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lacsomot committed Nov 4, 2024
1 parent d573c2b commit 6b89d71
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/ante/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ func createTx(priv *osecp256k1.PrivKey, msgs ...sdk.Msg) (sdk.Tx, error) {
context.TODO(), defaultSignMode, signerData,
txBuilder, priv, encodingConfig.TxConfig, 0,
)

if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion x/asset/client/cli/query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CmdQueryParams() *cobra.Command {
Use: "params",
Short: "shows the parameters of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/asset/client/cli/query_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CmdQueryTokens() *cobra.Command {
Use: "tokens",
Short: "shows the tokens of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/asset/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func ExportGenesis(ctx context.Context, k keeper.Keeper) *types.GenesisState {
}
genesis.Params = params
tokens := []types.Token{}
err = k.Token.Walk(ctx, nil, func(symbol string, token types.Token) (stop bool, err error) {
err = k.Token.Walk(ctx, nil, func(_ string, token types.Token) (stop bool, err error) {
tokens = append(tokens, token)
return false, nil
})
Expand Down
2 changes: 1 addition & 1 deletion x/asset/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (q queryServer) Tokens(c context.Context, req *types.QueryTokensRequest) (*
}

tokens := []types.Token{}
err := q.k.Token.Walk(c, nil, func(symbol string, token types.Token) (stop bool, err error) {
err := q.k.Token.Walk(c, nil, func(_ string, token types.Token) (stop bool, err error) {
tokens = append(tokens, token)
return false, nil
})
Expand Down
6 changes: 3 additions & 3 deletions x/bridge/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func CmdQueryParams() *cobra.Command {
Use: "params",
Short: "shows the parameters of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand All @@ -59,7 +59,7 @@ func CmdQueryRateLimits() *cobra.Command {
Use: "ratelimits",
Short: "shows the ratelimits of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down Expand Up @@ -108,7 +108,7 @@ func CmdQueryEpochInfo() *cobra.Command {
Use: "epoch-info",
Short: "shows the epoch info of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
6 changes: 3 additions & 3 deletions x/mint/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func GetCmdQueryParams() *cobra.Command {
Use: "params",
Short: "Query the current minting parameters",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down Expand Up @@ -66,7 +66,7 @@ func GetCmdQueryInflation() *cobra.Command {
Use: "inflation",
Short: "Query the current minting inflation value",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down Expand Up @@ -95,7 +95,7 @@ func GetCmdQueryAnnualProvisions() *cobra.Command {
Use: "annual-provisions",
Short: "Query the current minting annual provisions value",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down

0 comments on commit 6b89d71

Please sign in to comment.