diff --git a/cmd/webhook.go b/cmd/webhook.go index 9998df2..3fddab0 100644 --- a/cmd/webhook.go +++ b/cmd/webhook.go @@ -96,10 +96,10 @@ func sendRequest(url string, data *Webhook) error { } resp, err := http.Post(url, "application/json", bytes.NewBuffer(jsonData)) - defer resp.Body.Close() if err != nil { return err } + defer resp.Body.Close() return nil }