From a6dd8d220dfebe326e6610e0b0b0b566a6060c82 Mon Sep 17 00:00:00 2001 From: Vojtech Vitek Date: Fri, 4 Oct 2024 11:01:12 +0200 Subject: [PATCH] Fix typo --- hydrate.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hydrate.go b/hydrate.go index 2209c6a..ba5a0e8 100644 --- a/hydrate.go +++ b/hydrate.go @@ -53,13 +53,11 @@ func hydrateConfig(ctx context.Context, provider secretsProvider, v reflect.Valu return fmt.Errorf("passed config must be struct, actual %s", v.Kind()) } - ga := &collector{} - ga.collectSecretFields(v, "config") - - fields := ga.fields + c := &collector{} + c.collectSecretFields(v, "config") g := &errgroup.Group{} - for _, field := range fields { + for _, field := range c.fields { field := field g.Go(func() error {