From a96f57ed167415971d13c0ad1fdf6aba26e0f25f Mon Sep 17 00:00:00 2001 From: Denis Peshkov Date: Fri, 5 Apr 2024 21:55:08 +0400 Subject: [PATCH] fix empty multierror check --- internal/multierr/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/multierr/error.go b/internal/multierr/error.go index 19a5404..de33c8a 100644 --- a/internal/multierr/error.go +++ b/internal/multierr/error.go @@ -36,7 +36,7 @@ func Join(errs ...error) error { // Error returns a string representation of an error. Errors are formatted as a flat structure ["", ""]. func (e joinError) Error() string { - if e == nil { + if len(e) == 0 { return "" }