diff --git a/agent/plugin/error.go b/agent/plugin/error.go index 0ca5b45f9a..c9be072c4f 100644 --- a/agent/plugin/error.go +++ b/agent/plugin/error.go @@ -24,7 +24,7 @@ func (e *DeprecatedNameErrors) Unwrap() []error { return nil } - if e.errs == nil { + if len(e.errs) == 0 { return []error{} }