Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jul 22, 2024
1 parent e78e0a7 commit 5b45dc5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion cmd/chain-maind/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
cmd.SetOut(cmd.OutOrStdout())
cmd.SetErr(cmd.ErrOrStderr())

//nolint: govet
initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
if err != nil {
return err
Expand Down
2 changes: 0 additions & 2 deletions x/chainmain/client/cli/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
}

// attempt to lookup address from Keybase if no address was provided
//nolint: govet
kb, err := keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, clientCtx.Codec)
if err != nil {
return err
Expand Down Expand Up @@ -149,7 +148,6 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
genAccount = baseAccount
}

//nolint: govet
if err := genAccount.Validate(); err != nil {
return fmt.Errorf("failed to validate new genesis account: %w", err)
}
Expand Down
9 changes: 0 additions & 9 deletions x/nft/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ func GetCmdQueryOwner() *cobra.Command {
if err != nil {
return err
}

//nolint: govet
if _, err := sdk.AccAddressFromBech32(args[0]); err != nil {
return err
}
Expand Down Expand Up @@ -140,8 +138,6 @@ func GetCmdQueryCollection() *cobra.Command {
if err != nil {
return err
}

//nolint: govet
if err := types.ValidateDenomIDWithIBC(args[0]); err != nil {
return err
}
Expand Down Expand Up @@ -210,8 +206,6 @@ func GetCmdQueryDenom() *cobra.Command {
if err != nil {
return err
}

//nolint: govet
if err := types.ValidateDenomIDWithIBC(args[0]); err != nil {
return err
}
Expand Down Expand Up @@ -245,7 +239,6 @@ func GetCmdQueryDenomByName() *cobra.Command {
return err
}

//nolint: govet
if err := types.ValidateDenomName(args[0]); err != nil {
return err
}
Expand Down Expand Up @@ -279,12 +272,10 @@ func GetCmdQueryNFT() *cobra.Command {
return err
}

//nolint: govet
if err := types.ValidateDenomIDWithIBC(args[0]); err != nil {
return err
}

//nolint: govet
if err := types.ValidateTokenID(args[1]); err != nil {
return err
}
Expand Down

0 comments on commit 5b45dc5

Please sign in to comment.