We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2e41f commit 4ceb28aCopy full SHA for 4ceb28a
1 file changed
errors.go
@@ -119,19 +119,10 @@ func (e *AsertoError) Err(err error) *AsertoError {
119
if err == nil {
120
return e
121
}
122
- c := e.Copy()
123
+ c := e.Copy()
124
c.errs = append(c.errs, err)
125
126
- var aErr *AsertoError
127
- if ok := errors.As(err, &aErr); ok {
128
- for k, v := range aErr.data {
129
- if _, ok := c.data[k]; !ok {
130
- c.data[k] = v
131
- }
132
133
134
-
135
return c
136
137
0 commit comments