tsdb/errors: fix errorlint linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/13141/head
Matthieu MOREL 2023-11-14 18:48:53 +01:00
parent cf528bef03
commit e60a508dd8
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
}