From 073f697ad958b3fe00d179e5cf23021d09cefeb3 Mon Sep 17 00:00:00 2001 From: Horst Gutmann Date: Fri, 6 Sep 2024 10:03:01 +0200 Subject: [PATCH] More linting fixes --- cmd/tk/lint.go | 2 +- cmd/tk/prefix.go | 2 +- cmd/tk/status.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tk/lint.go b/cmd/tk/lint.go index 9bb6edf4c..bad3679ba 100644 --- a/cmd/tk/lint.go +++ b/cmd/tk/lint.go @@ -27,7 +27,7 @@ func lintCmd() *cli.Command { panic(err) } - cmd.Run = func(cmd *cli.Command, args []string) error { + cmd.Run = func(_ *cli.Command, args []string) error { globs := make([]glob.Glob, len(*exclude)) for i, e := range *exclude { g, err := glob.Compile(e) diff --git a/cmd/tk/prefix.go b/cmd/tk/prefix.go index 4a6ca28c8..ef20e65f9 100644 --- a/cmd/tk/prefix.go +++ b/cmd/tk/prefix.go @@ -31,7 +31,7 @@ func prefixCommands(prefix string) (cmds []*cli.Command) { extCommand.Stdout = os.Stdout extCommand.Stderr = os.Stderr - cmd.Run = func(cmd *cli.Command, args []string) error { + cmd.Run = func(_ *cli.Command, args []string) error { extCommand.Args = append(extCommand.Args, args...) return extCommand.Run() } diff --git a/cmd/tk/status.go b/cmd/tk/status.go index 85cc8147c..8d76c5676 100644 --- a/cmd/tk/status.go +++ b/cmd/tk/status.go @@ -23,7 +23,7 @@ func statusCmd() *cli.Command { vars := workflowFlags(cmd.Flags()) getJsonnetOpts := jsonnetFlags(cmd.Flags()) - cmd.Run = func(cmd *cli.Command, args []string) error { + cmd.Run = func(_ *cli.Command, args []string) error { status, err := tanka.Status(args[0], tanka.Opts{ JsonnetImplementation: vars.jsonnetImplementation, JsonnetOpts: getJsonnetOpts(),