Skip to content

Commit ea99740

Browse files
authored
Merge pull request #173 from lemeurherve/fix-golangci-lint-warning
chore: fix golangci-lint errors
2 parents f596100 + e55ee5f commit ea99740

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/jv/jv.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func init() {
5252

5353
RootCmd.Flags().Bool("version", false, "Show version")
5454

55-
RootCmd.SetFlagErrorFunc(func(cmd *cobra.Command, err error) error {
55+
RootCmd.SetFlagErrorFunc(func(_ *cobra.Command, err error) error {
5656
if err == pflag.ErrHelp {
5757
return err
5858
}
@@ -62,7 +62,7 @@ func init() {
6262
RootCmd.AddCommand(cmd.NewGetCmd())
6363
RootCmd.AddCommand(cmd.NewDownloadCmd())
6464

65-
RootCmd.PersistentPreRun = func(cmd *cobra.Command, args []string) {
65+
RootCmd.PersistentPreRun = func(_ *cobra.Command, _ []string) {
6666
if Verbose {
6767
logrus.SetLevel(logrus.DebugLevel)
6868
}
@@ -101,15 +101,15 @@ var RootCmd = &cobra.Command{
101101
var versionCmd = &cobra.Command{
102102
Use: "version",
103103
Hidden: true,
104-
Run: func(cmd *cobra.Command, args []string) {
104+
Run: func(_ *cobra.Command, _ []string) {
105105
fmt.Print(versionOutput)
106106
},
107107
}
108108

109109
var docsCmd = &cobra.Command{
110110
Use: "docs",
111111
Hidden: true,
112-
Run: func(cmd *cobra.Command, args []string) {
112+
Run: func(_ *cobra.Command, _ []string) {
113113
RootCmd.DisableAutoGenTag = true
114114

115115
err := doc.GenMarkdownTree(RootCmd, "./docs")
@@ -136,7 +136,7 @@ When installing GitHub CLI through a package manager, however, it's possible tha
136136
no additional shell configuration is necessary to gain completion support. For
137137
Homebrew, see <https://docs.brew.sh/Shell-Completion>
138138
`,
139-
RunE: func(cmd *cobra.Command, args []string) error {
139+
RunE: func(cmd *cobra.Command, _ []string) error {
140140
shellType, err := cmd.Flags().GetString("shell")
141141
if err != nil {
142142
return err

0 commit comments

Comments
 (0)