tsdb/errors: fix errorlint linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL 2023-11-14 18:48:53 +01:00
parent cf528bef03
commit e60a508dd8

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
}