mirror of
https://github.com/prometheus/prometheus
synced 2024-12-28 17:52:22 +00:00
tsdb/errors: fix errorlint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
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
Block a user