Commit 2b2e1d59 authored by Vic Iglesias's avatar Vic Iglesias

Simplify final logic block in create

parent 06d9ccd0
...@@ -249,8 +249,5 @@ func Create(chartfile *chart.Metadata, dir string) (string, error) { ...@@ -249,8 +249,5 @@ func Create(chartfile *chart.Metadata, dir string) (string, error) {
// Write out _helpers.tpl // Write out _helpers.tpl
val = []byte(defaultHelpers) val = []byte(defaultHelpers)
if err := ioutil.WriteFile(filepath.Join(cdir, TemplatesDir, HelpersName), val, 0644); err != nil { return cdir, ioutil.WriteFile(filepath.Join(cdir, TemplatesDir, HelpersName), val, 0644)
return cdir, err
}
return cdir, nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment