We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e68b545 commit f325853Copy full SHA for f325853
zendesk/error.go
@@ -17,8 +17,8 @@ type Error struct {
17
// NewError is a function to initialize the Error type. This function will be useful
18
// for unit testing and mocking purposes in the client side
19
// to test their behavior by the API response.
20
-func NewError(body []byte, resp *http.Response) *Error {
21
- return &Error{
+func NewError(body []byte, resp *http.Response) Error {
+ return Error{
22
body: body,
23
resp: resp,
24
}
0 commit comments