diff --git a/webhook.go b/webhook.go index 773dca6..3f9b697 100644 --- a/webhook.go +++ b/webhook.go @@ -48,10 +48,6 @@ func Execute(suffix, username, title, text string) (err error) { resp, err := http.Post(baseURL + suffix, "application/json", strings.NewReader(string(body))) - if err != nil { - return - } - if resp.StatusCode < 200 || resp.StatusCode > 299 { err = errors.New(resp.Status) }