Skip to content

Commit 0c3d827

Browse files
committed
Address feedback
1 parent 22c4e2b commit 0c3d827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multierror.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (e chain) Unwrap() error {
102102
return nil
103103
}
104104

105-
return chain(e[1:])
105+
return e[1:]
106106
}
107107

108108
// As implements errors.As by attempting to map to the current value.
@@ -112,5 +112,5 @@ func (e chain) As(target interface{}) bool {
112112

113113
// Is implements errors.Is by comparing the current value directly.
114114
func (e chain) Is(target error) bool {
115-
return e[0] == target
115+
return errors.Is(e[0], target)
116116
}

0 commit comments

Comments
 (0)