mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #13141 from mmorel-35/patch-1
tsdb/errors: fix errorlint linter
This commit is contained in:
commit
58eca19ac0
|
@ -38,7 +38,8 @@ func (es *multiError) Add(errs ...error) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if merr, ok := err.(nonNilMultiError); ok {
|
var merr nonNilMultiError
|
||||||
|
if errors.As(err, &merr) {
|
||||||
*es = append(*es, merr.errs...)
|
*es = append(*es, merr.errs...)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue