mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-03 14:56:48 +02:00
state: vet nit
This commit is contained in:
+3
-3
@@ -58,12 +58,12 @@ func (state *HelmState) SyncRepos(helm helmexec.Interface) []error {
|
||||
|
||||
for _, repo := range state.Repositories {
|
||||
wg.Add(1)
|
||||
go func(wg *sync.WaitGroup) {
|
||||
if err := helm.AddRepo(repo.Name, repo.URL); err != nil {
|
||||
go func(wg *sync.WaitGroup, name, url string) {
|
||||
if err := helm.AddRepo(name, url); err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
wg.Done()
|
||||
}(&wg)
|
||||
}(&wg, repo.Name, repo.URL)
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user