Skip to content

Commit

Permalink
More linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zerok committed Sep 6, 2024
1 parent d752dfe commit 073f697
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/tk/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cmd/tk/prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/tk/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 073f697

Please sign in to comment.