Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <anurag.kumar@syself.com>
  • Loading branch information
kranurag7 committed Feb 23, 2024
1 parent 8e8aec7 commit e2ad1e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ import (
)

var (
Version string = "dev"
Commit string = "unknown"
// Version of csctl.
Version = "dev"
// Commit against which csctl version is cut.
Commit = "unknown"
)

var versionCmd = &cobra.Command{
Expand All @@ -34,7 +36,7 @@ var versionCmd = &cobra.Command{
SilenceUsage: true,
}

func printVersion(cmd *cobra.Command, args []string) {
func printVersion(_ *cobra.Command, _ []string) {
fmt.Println("csmctl version:", Version)
fmt.Println("commit:", Commit)
}
2 changes: 1 addition & 1 deletion pkg/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type CustomWalkFunc func(src, dst, path string, info os.FileInfo, meta *csctlclu

// MyWalk is the custom walking function to walk in the cluster stacks.
func MyWalk(src, dst string, walkFn CustomWalkFunc, meta *csctlclusterstack.MetaData) error {
if err := filepath.Walk(src, func(path string, info os.FileInfo, err error) error {
if err := filepath.Walk(src, func(path string, info os.FileInfo, _ error) error {
return walkFn(src, dst, path, info, meta)
}); err != nil {
return fmt.Errorf("failed to walk files: %w", err)
Expand Down

0 comments on commit e2ad1e0

Please sign in to comment.