Commit d251b94e authored by Abejide Femi's avatar Abejide Femi Committed by Martin Hickey

refactor manager file in pkg folder (#6551)

Signed-off-by: 's avatarabejidefemi1@gmail.com <abejidefemi1@gmail.com>
parent 77a7bbb0
......@@ -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://") {
......
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