You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chain.Unwrap() has a test to see whether the end of the chain has been reached. I don't understand this; is it correct?
multierror.go:
// Unwrap implements errors.Unwrap by returning the next error in the// chain or nil if there are no more errors.func (echain) Unwrap() error {
iflen(e) ==1 { // line 106returnnil
}
returne[1:]
}
It seems to me that line 106 might have a mistake and should be if len(e) < 1 {.
Have I misunderstood this?
I am using v1.1.1.
The text was updated successfully, but these errors were encountered:
chain.Unwrap() has a test to see whether the end of the chain has been reached. I don't understand this; is it correct?
multierror.go:
It seems to me that line 106 might have a mistake and should be
if len(e) < 1 {
.Have I misunderstood this?
I am using v1.1.1.
The text was updated successfully, but these errors were encountered: