mirror of https://github.com/prometheus/prometheus
tsdb/errors: fix errorlint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>pull/13141/head
parent
cf528bef03
commit
e60a508dd8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue