Skip to content

Commit 6b88590

Browse files
committed
Remove a few nolint comments that aren't needed anymore because FlagTitle is no longer deprecated.
1 parent 0596d76 commit 6b88590

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

x/upgrade/client/cli/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func parseArgsToContent(fs *pflag.FlagSet, name string) (gov.Content, error) {
11-
title, err := fs.GetString(cli.FlagTitle) //nolint:staticcheck
11+
title, err := fs.GetString(cli.FlagTitle)
1212
if err != nil {
1313
return nil, err
1414
}

x/upgrade/client/cli/tx.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func NewCmdSubmitLegacyUpgradeProposal() *cobra.Command {
9393
},
9494
}
9595

96-
cmd.Flags().String(cli.FlagTitle, "", "title of proposal") //nolint:staticcheck
96+
cmd.Flags().String(cli.FlagTitle, "", "title of proposal")
9797
cmd.Flags().String(cli.FlagDescription, "", "description of proposal") //nolint:staticcheck
9898
cmd.Flags().String(cli.FlagDeposit, "", "deposit of proposal")
9999
cmd.Flags().Int64(FlagUpgradeHeight, 0, "The height at which the upgrade must happen")
@@ -129,7 +129,7 @@ func NewCmdSubmitLegacyCancelUpgradeProposal() *cobra.Command {
129129
return err
130130
}
131131

132-
title, err := cmd.Flags().GetString(cli.FlagTitle) //nolint:staticcheck
132+
title, err := cmd.Flags().GetString(cli.FlagTitle)
133133
if err != nil {
134134
return err
135135
}
@@ -150,10 +150,10 @@ func NewCmdSubmitLegacyCancelUpgradeProposal() *cobra.Command {
150150
},
151151
}
152152

153-
cmd.Flags().String(cli.FlagTitle, "", "title of proposal") //nolint:staticcheck
153+
cmd.Flags().String(cli.FlagTitle, "", "title of proposal")
154154
cmd.Flags().String(cli.FlagDescription, "", "description of proposal") //nolint:staticcheck
155155
cmd.Flags().String(cli.FlagDeposit, "", "deposit of proposal")
156-
cmd.MarkFlagRequired(cli.FlagTitle) //nolint:staticcheck
156+
cmd.MarkFlagRequired(cli.FlagTitle)
157157
cmd.MarkFlagRequired(cli.FlagDescription) //nolint:staticcheck
158158

159159
return cmd

0 commit comments

Comments
 (0)