|
|
@@ -82,7 +82,7 @@ func (c *Client) SendDiscordMsg(feed *model.Feed, entries model.Entries) error {
|
|
|
if err != nil {
|
|
|
return fmt.Errorf("discord: unable to send request: %v", err)
|
|
|
}
|
|
|
- defer response.Body.Close()
|
|
|
+ response.Body.Close()
|
|
|
|
|
|
if response.StatusCode >= 400 {
|
|
|
return fmt.Errorf("discord: unable to send a notification: url=%s status=%d", c.webhookURL, response.StatusCode)
|