diff --git a/webhooks.go b/webhooks.go index 643c91a..5c5ce1f 100644 --- a/webhooks.go +++ b/webhooks.go @@ -97,8 +97,7 @@ func (c *Client) VerifyWebhookSignature(ctx context.Context, httpReq *http.Reque var bodyBytes []byte if httpReq.Body != nil { bodyBytes, _ = ioutil.ReadAll(httpReq.Body) - } - else{ + }else{ return nil, errors.New("Cannot verify webhook for HTTP Request with empty body.") } // Restore the io.ReadCloser to its original state