From bf0c207b52321cf6819a4ca5875057ae98830f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Akko=C3=A7?= Date: Wed, 10 Nov 2021 23:33:48 +0100 Subject: [PATCH] Added spaces `} else {` --- webhooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhooks.go b/webhooks.go index 5c5ce1f..a6aae5c 100644 --- a/webhooks.go +++ b/webhooks.go @@ -97,7 +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