fixed two additional linter errors.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
pull/7655/head
Matt Butcher 6 years ago
parent 6afd0b4c6c
commit 34f38de61a
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -106,7 +106,7 @@ func newLintCmd(out io.Writer) *cobra.Command {
fmt.Fprint(&message, "\n") fmt.Fprint(&message, "\n")
} }
fmt.Fprintf(out, message.String()) fmt.Fprint(out, message.String())
summary := fmt.Sprintf("%d chart(s) linted, %d chart(s) failed", len(paths), failed) summary := fmt.Sprintf("%d chart(s) linted, %d chart(s) failed", len(paths), failed)
if failed > 0 { if failed > 0 {

@ -368,7 +368,7 @@ func CompDebug(msg string) {
if debug { if debug {
// Must print to stderr for this not to be read by the completion script. // Must print to stderr for this not to be read by the completion script.
fmt.Fprintf(os.Stderr, msg) fmt.Fprintln(os.Stderr, msg)
} }
} }
@ -389,7 +389,7 @@ func CompError(msg string) {
// If not already printed by the call to CompDebug(). // If not already printed by the call to CompDebug().
if !debug { if !debug {
// Must print to stderr for this not to be read by the completion script. // Must print to stderr for this not to be read by the completion script.
fmt.Fprintf(os.Stderr, msg) fmt.Fprintln(os.Stderr, msg)
} }
} }

Loading…
Cancel
Save