Cleanup nitpick suggestion in the lint command

Have fixed up a non-blocking nitpick change from #6310, this just
switches us to use a regular string rather than a string.Builder for the
summary.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
pull/6373/head
Thomas O'Donnell 5 years ago
parent 5cb923eecb
commit 69feb96490

@ -91,12 +91,11 @@ func newLintCmd(out io.Writer) *cobra.Command {
fmt.Fprintf(out, message.String()) fmt.Fprintf(out, message.String())
var summary strings.Builder summary := fmt.Sprintf("%d chart(s) linted, %d chart(s) failed", len(paths), failed)
fmt.Fprintf(&summary, "%d chart(s) linted, %d chart(s) failed", len(paths), failed)
if failed > 0 { if failed > 0 {
return errors.New(summary.String()) return errors.New(summary)
} }
fmt.Fprintf(out, "%s\n", summary.String()) fmt.Fprintln(out, summary)
return nil return nil
}, },
} }

Loading…
Cancel
Save