Skip to content

Commit

Permalink
Merge pull request #54 from ccremer/unwrap
Browse files Browse the repository at this point in the history
Implement Unwrap for Result errors
  • Loading branch information
ccremer committed Aug 8, 2022
2 parents 74b1ccb + ef8c831 commit ca3116e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions result.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ func (r resultImpl) Error() string {
func (r resultImpl) Name() string {
return r.name
}

// Unwrap implements xerrors.Wrapper.
func (r resultImpl) Unwrap() error {
return r.err
}

0 comments on commit ca3116e

Please sign in to comment.