Skip to content

Commit

Permalink
tame the linter gods
Browse files Browse the repository at this point in the history
  • Loading branch information
databus23 committed Oct 24, 2019
1 parent 4daa76c commit 977b5c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/helm3.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (d *diffCmd) template() ([]byte, error) {

func (d *diffCmd) existingValues(f *os.File) error {
cmd := exec.Command(os.Getenv("HELM_BIN"), "get", "values", d.release, "--all")
DebugPrint("Executing %s", strings.Join(cmd.Args, " "))
debugPrint("Executing %s", strings.Join(cmd.Args, " "))
defer f.Close()
cmd.Stdout = f
return cmd.Run()
Expand Down
4 changes: 2 additions & 2 deletions cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func isHelm3() bool {
func isDebug() bool {
return os.Getenv("HELM_DEBUG") == "true"
}
func DebugPrint(format string, a ...interface{}) {
func debugPrint(format string, a ...interface{}) {
if isDebug() {
fmt.Printf(format+"\n", a...)
}
Expand Down Expand Up @@ -84,7 +84,7 @@ func expandTLSPaths() {
}

func outputWithRichError(cmd *exec.Cmd) ([]byte, error) {
DebugPrint("Executing %s", strings.Join(cmd.Args, " "))
debugPrint("Executing %s", strings.Join(cmd.Args, " "))
output, err := cmd.Output()
if exitError, ok := err.(*exec.ExitError); ok {
return output, fmt.Errorf("%s: %s", exitError.Error(), string(exitError.Stderr))
Expand Down

0 comments on commit 977b5c8

Please sign in to comment.