Skip to content

Commit

Permalink
remove redundant unwrap method
Browse files Browse the repository at this point in the history
  • Loading branch information
BolajiOlajide committed Jun 20, 2024
1 parent 05bb94f commit 82b3750
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/extsvc/bitbucketserver/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1473,10 +1473,6 @@ func (e *httpError) Error() string {
return fmt.Sprintf("Bitbucket API HTTP error: code=%d url=%q body=%q", e.StatusCode, e.URL, e.Body)
}

func (e *httpError) Unwrap() error {
return errors.Newf(e.Error())
}

func (e *httpError) Unauthorized() bool {
return e.StatusCode == http.StatusUnauthorized
}
Expand Down

0 comments on commit 82b3750

Please sign in to comment.