Merge pull request #13141 from mmorel-35/patch-1

tsdb/errors: fix errorlint linter
pull/13159/head
Julien Pivotto 2023-11-17 10:20:00 +01:00 committed by GitHub
commit 58eca19ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ func (es *multiError) Add(errs ...error) {
if err == nil {
continue
}
if merr, ok := err.(nonNilMultiError); ok {
var merr nonNilMultiError
if errors.As(err, &merr) {
*es = append(*es, merr.errs...)
continue
}