You've already forked email-api-client
refactor: fix json.Unmarshal target reference in response handling
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 19s
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 19s
This commit is contained in:
@@ -17,7 +17,7 @@ func readResponseBody[T any](res *http.Response) (*T, error) {
|
||||
}
|
||||
|
||||
var target T
|
||||
err = json.Unmarshal(responseBody, target)
|
||||
err = json.Unmarshal(responseBody, &target)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user