Let error-handling occur first

Signed-off-by: Trond Hindenes <trond@hindenes.com>
pull/7166/head
Trond Hindenes 6 years ago committed by Martin Hickey
parent f40fbf3131
commit 3d547a2baa

@ -66,10 +66,10 @@ func (o *repoUpdateOptions) run(out io.Writer) error {
var repos []*repo.ChartRepository
for _, cfg := range f.Repositories {
r, err := repo.NewChartRepository(cfg, getter.All(settings))
r.CachePath = settings.RepositoryCache
if err != nil {
return err
}
r.CachePath = settings.RepositoryCache
repos = append(repos, r)
}

Loading…
Cancel
Save