Skip to content

Commit

Permalink
Fix double pointer (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
moredure committed Apr 3, 2022
1 parent f87249c commit 45981da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (c *Client) PushWithContext(ctx Context, n *Notification) (*Response, error
response.ApnsID = httpRes.Header.Get("apns-id")

decoder := json.NewDecoder(httpRes.Body)
if err := decoder.Decode(&response); err != nil && err != io.EOF {
if err := decoder.Decode(response); err != nil && err != io.EOF {
return &Response{}, err
}
return response, nil
Expand Down

0 comments on commit 45981da

Please sign in to comment.