Skip to content

Commit d752dfe

Browse files
committed
Fix more linting issues
1 parent 8d20e00 commit d752dfe

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmd/tk/fmt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func fmtCmd() *cli.Command {
3030
exclude := cmd.Flags().StringSliceP("exclude", "e", []string{"**/.*", ".*", "**/vendor/**", "vendor/**"}, "globs to exclude")
3131
verbose := cmd.Flags().BoolP("verbose", "v", false, "print each checked file")
3232

33-
cmd.Run = func(cmd *cli.Command, args []string) error {
33+
cmd.Run = func(_ *cli.Command, args []string) error {
3434
if len(args) == 1 && args[0] == ArgStdin {
3535
return fmtStdin(*test)
3636
}

cmd/tk/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func initCmd() *cli.Command {
2626
installK8s := cmd.Flags().String("k8s", defaultK8sVersion, "choose the version of k8s-libsonnet, set to false to skip")
2727
inline := cmd.Flags().BoolP("inline", "i", false, "create an inline environment")
2828

29-
cmd.Run = func(cmd *cli.Command, args []string) error {
29+
cmd.Run = func(_ *cli.Command, _ []string) error {
3030
failed := false
3131

3232
files, err := os.ReadDir(".")

cmd/tk/toolCharts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func chartsVendorCmd() *cli.Command {
4141
prune := cmd.Flags().Bool("prune", false, "also remove non-vendored files from the destination directory")
4242
repoConfigPath := cmd.Flags().String("repository-config", "", repoConfigFlagUsage)
4343

44-
cmd.Run = func(_ *cli.Command, args []string) error {
44+
cmd.Run = func(_ *cli.Command, _ []string) error {
4545
c, err := loadChartfile()
4646
if err != nil {
4747
return err

cmd/tk/workflow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func applyCmd() *cli.Command {
9595
vars := workflowFlags(cmd.Flags())
9696
getJsonnetOpts := jsonnetFlags(cmd.Flags())
9797

98-
cmd.Run = func(cmd *cli.Command, args []string) error {
98+
cmd.Run = func(_ *cli.Command, args []string) error {
9999
err := validateDryRun(opts.DryRun)
100100
if err != nil {
101101
return err

pkg/helm/spec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (r Requirements) Validate() error {
132132
}
133133

134134
if len(errs) > 0 {
135-
return fmt.Errorf("Validation errors:\n - %s", strings.Join(errs, "\n - "))
135+
return fmt.Errorf("validation errors:\n - %s", strings.Join(errs, "\n - "))
136136
}
137137

138138
return nil

0 commit comments

Comments
 (0)