Merge pull request #6373 from andytom/task/cleanup_nitpick_lint

Cleanup nitpick suggestion in the lint command
pull/6385/head
Matthew Fisher 5 years ago committed by GitHub
commit bc42dca470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,12 +91,11 @@ func newLintCmd(out io.Writer) *cobra.Command {
fmt.Fprintf(out, message.String())
var summary strings.Builder
fmt.Fprintf(&summary, "%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 {
return errors.New(summary.String())
return errors.New(summary)
}
fmt.Fprintf(out, "%s\n", summary.String())
fmt.Fprintln(out, summary)
return nil
},
}

Loading…
Cancel
Save