Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Mar 31, 2020
1 parent 22c4e2b commit 0c3d827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multierror.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (e chain) Unwrap() error {
return nil
}

return chain(e[1:])
return e[1:]
}

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

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

0 comments on commit 0c3d827

Please sign in to comment.