Skip to content

Commit

Permalink
Add optimisation for empty set of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Aug 3, 2023
1 parent 093142e commit 2ee34ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/plugin/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (e *DeprecatedNameErrors) Unwrap() []error {
return nil
}

if e.errs == nil {
if len(e.errs) == 0 {
return []error{}
}

Expand Down

0 comments on commit 2ee34ab

Please sign in to comment.