Skip to content

Commit

Permalink
Bugfix: bad use of errors.Join
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 24, 2023
1 parent 252495f commit 14b2640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows-agent/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 14b2640

Please sign in to comment.