refactor manager file in pkg folder (#6551)

Signed-off-by: abejidefemi1@gmail.com <abejidefemi1@gmail.com>
pull/6565/head
Abejide Femi 5 years ago committed by Martin Hickey
parent 77a7bbb013
commit d251b94efc

@ -442,8 +442,7 @@ func (m *Manager) UpdateRepositories() error {
if err != nil {
return err
}
repos := rf.Repositories
if len(repos) > 0 {
if repos := rf.Repositories; len(repos) > 0 {
// This prints warnings straight to out.
if err := m.parallelRepoUpdate(repos); err != nil {
return err
@ -616,7 +615,7 @@ func writeLock(chartpath string, lock *chartutil.RequirementsLock) error {
}
// tarFromLocalDir archive a dep chart from local directory and save it into charts/
func tarFromLocalDir(chartpath string, name string, repo string, version string) (string, error) {
func tarFromLocalDir(chartpath, name, repo, version string) (string, error) {
destPath := filepath.Join(chartpath, "charts")
if !strings.HasPrefix(repo, "file://") {

Loading…
Cancel
Save