delete operation does not need this checking

This commit is contained in:
Chris Lu 2016-07-21 00:40:13 -07:00
parent cdae9fc680
commit a57162e8bf

View file

@ -87,9 +87,6 @@ func Delete(url string, jwt security.EncodedJwt) error {
return e
}
defer resp.Body.Close()
if resp.StatusCode >= 400 {
return fmt.Errorf("%s: %s", url, resp.Status)
}
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err