Chore: Replace go-multierror with errors package (#66432)

* code refactor and type assertions added to tests

* no-lint rule added for specific line
This commit is contained in:
SatVeer Singh
2023-06-19 14:59:45 +05:30
committed by GitHub
parent a75752b085
commit 1bfa3a0f1e
8 changed files with 25 additions and 30 deletions

View File

@@ -8,7 +8,6 @@ import (
"time"
"github.com/benbjohnson/clock"
"github.com/hashicorp/go-multierror"
"go.opentelemetry.io/otel/attribute"
"golang.org/x/sync/errgroup"
@@ -399,7 +398,7 @@ func (sch *schedule) ruleRoutine(grafanaCtx context.Context, key ngmodels.AlertR
if err == nil {
for _, result := range results {
if result.Error != nil {
err = multierror.Append(err, result.Error)
err = errors.Join(err, result.Error)
}
}
}