From e60a508dd8286a707e1db64a3327de61f2c955c4 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 14 Nov 2023 18:48:53 +0100 Subject: [PATCH] tsdb/errors: fix errorlint linter Signed-off-by: Matthieu MOREL --- tsdb/errors/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsdb/errors/errors.go b/tsdb/errors/errors.go index 21449e895..6a8e72f04 100644 --- a/tsdb/errors/errors.go +++ b/tsdb/errors/errors.go @@ -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 }