fix(notification):: fix missing error check

This commit is contained in:
Nicolas Carlier 2020-06-08 13:39:53 +00:00
parent 552b683f9e
commit 5911b8f3c3

View File

@ -53,6 +53,9 @@ func (n *HTTPNotifier) Notify(work *model.WorkRequest) error {
}
req, err := http.NewRequest("POST", n.URL.String(), bytes.NewBuffer(notifJSON))
if err != nil {
return err
}
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}