diff --git a/cmd/helm/template.go b/cmd/helm/template.go index 6123d29d4..e1e8ea6eb 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -91,7 +91,7 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { if client.UseReleaseName { newDir = filepath.Join(client.OutputDir, client.ReleaseName) } - err = writeToFile(newDir, m.Path, m.Manifest, fileWritten[m.Path]) + err := writeToFile(newDir, m.Path, m.Manifest, fileWritten[m.Path]) if err != nil { return err }