Skip to content

Commit

Permalink
Merge pull request #258 from dzakaammar/fixing-new-err
Browse files Browse the repository at this point in the history
return value type of Error on NewError
  • Loading branch information
nukosuke committed Feb 15, 2023
2 parents e68b545 + f325853 commit c5a8eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zendesk/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type Error struct {
// NewError is a function to initialize the Error type. This function will be useful
// for unit testing and mocking purposes in the client side
// to test their behavior by the API response.
func NewError(body []byte, resp *http.Response) *Error {
return &Error{
func NewError(body []byte, resp *http.Response) Error {
return Error{
body: body,
resp: resp,
}
Expand Down

0 comments on commit c5a8eb7

Please sign in to comment.