Skip to content

Commit 977b5c8

Browse files
committed
tame the linter gods
1 parent 4daa76c commit 977b5c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/helm3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (d *diffCmd) template() ([]byte, error) {
9393

9494
func (d *diffCmd) existingValues(f *os.File) error {
9595
cmd := exec.Command(os.Getenv("HELM_BIN"), "get", "values", d.release, "--all")
96-
DebugPrint("Executing %s", strings.Join(cmd.Args, " "))
96+
debugPrint("Executing %s", strings.Join(cmd.Args, " "))
9797
defer f.Close()
9898
cmd.Stdout = f
9999
return cmd.Run()

cmd/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func isHelm3() bool {
3636
func isDebug() bool {
3737
return os.Getenv("HELM_DEBUG") == "true"
3838
}
39-
func DebugPrint(format string, a ...interface{}) {
39+
func debugPrint(format string, a ...interface{}) {
4040
if isDebug() {
4141
fmt.Printf(format+"\n", a...)
4242
}
@@ -84,7 +84,7 @@ func expandTLSPaths() {
8484
}
8585

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

0 commit comments

Comments
 (0)