Merge pull request #411 from shawnps/patch-7

remove unused variable
pull/415/head
Jack Greenfield 9 years ago
commit 9a399c6754

@ -45,11 +45,7 @@ func Save(c *Chart, outDir string) (string, error) {
cfile := c.Chartfile() cfile := c.Chartfile()
dir := c.Dir() dir := c.Dir()
basename := filepath.Base(dir)
pdir := filepath.Dir(dir) pdir := filepath.Dir(dir)
if basename == "." {
basename = fname(cfile.Name)
}
filename := fmt.Sprintf("%s-%s.tgz", fname(cfile.Name), cfile.Version) filename := fmt.Sprintf("%s-%s.tgz", fname(cfile.Name), cfile.Version)
filename = filepath.Join(outDir, filename) filename = filepath.Join(outDir, filename)

Loading…
Cancel
Save