mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Added spaces
`} else {`
This commit is contained in:
parent
28f2333770
commit
bf0c207b52
|
@ -97,7 +97,7 @@ func (c *Client) VerifyWebhookSignature(ctx context.Context, httpReq *http.Reque
|
||||||
var bodyBytes []byte
|
var bodyBytes []byte
|
||||||
if httpReq.Body != nil {
|
if httpReq.Body != nil {
|
||||||
bodyBytes, _ = ioutil.ReadAll(httpReq.Body)
|
bodyBytes, _ = ioutil.ReadAll(httpReq.Body)
|
||||||
}else{
|
} else {
|
||||||
return nil, errors.New("Cannot verify webhook for HTTP Request with empty body.")
|
return nil, errors.New("Cannot verify webhook for HTTP Request with empty body.")
|
||||||
}
|
}
|
||||||
// Restore the io.ReadCloser to its original state
|
// Restore the io.ReadCloser to its original state
|
||||||
|
|
Loading…
Reference in New Issue
Block a user