From 14b2640100b94398e48e2a3be664a16e84e0314c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Tue, 24 Oct 2023 16:19:16 +0200 Subject: [PATCH] Bugfix: bad use of errors.Join --- windows-agent/internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-agent/internal/config/config.go b/windows-agent/internal/config/config.go index 2462e381f..4b64ab282 100644 --- a/windows-agent/internal/config/config.go +++ b/windows-agent/internal/config/config.go @@ -428,7 +428,7 @@ func (c *Config) UpdateRegistrySettings(ctx context.Context, cacheDir string, db for _, f := range []getTask{(*Config).getTaskOnNewSubscription, (*Config).getTaskOnNewLandscape} { task, err := f(c, ctx, cacheDir, db) if err != nil { - errors.Join(acc, err) + acc = errors.Join(acc, err) continue } if task != nil {