Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
1 changed files with 0 additions and 4 deletions
|
|
@ -48,10 +48,6 @@ func Execute(suffix, username, title, text string) (err error) {
|
||||||
resp, err := http.Post(baseURL + suffix, "application/json",
|
resp, err := http.Post(baseURL + suffix, "application/json",
|
||||||
strings.NewReader(string(body)))
|
strings.NewReader(string(body)))
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if resp.StatusCode < 200 || resp.StatusCode > 299 {
|
if resp.StatusCode < 200 || resp.StatusCode > 299 {
|
||||||
err = errors.New(resp.Status)
|
err = errors.New(resp.Status)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue