Skip to content

Commit

Permalink
fix empty multierror check
Browse files Browse the repository at this point in the history
  • Loading branch information
denpeshkov committed Apr 5, 2024
1 parent 54d4c18 commit a96f57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/multierr/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}

Expand Down

0 comments on commit a96f57e

Please sign in to comment.