Skip to content

Commit f325853

Browse files
committed
return value type of Error on NewError
1 parent e68b545 commit f325853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zendesk/error.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ type Error struct {
1717
// NewError is a function to initialize the Error type. This function will be useful
1818
// for unit testing and mocking purposes in the client side
1919
// to test their behavior by the API response.
20-
func NewError(body []byte, resp *http.Response) *Error {
21-
return &Error{
20+
func NewError(body []byte, resp *http.Response) Error {
21+
return Error{
2222
body: body,
2323
resp: resp,
2424
}

0 commit comments

Comments
 (0)