forked from go-packages/paypal
Fixed else syntax
This commit is contained in:
parent
d815f6d8d9
commit
28f2333770
|
@ -97,8 +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