Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
we don't need both methods to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrijalva committed Jan 7, 2020
1 parent 122d992 commit d9519f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion errors.go
Expand Up @@ -23,7 +23,6 @@ func wrapError(a, b error) error {

type iErrorWrapper interface {
Wrap(error)
Unwrap() error
}
if w, ok := a.(iErrorWrapper); ok {
w.Wrap(b)
Expand Down

0 comments on commit d9519f1

Please sign in to comment.