delete operation does not need this checking
This commit is contained in:
@@ -87,9 +87,6 @@ func Delete(url string, jwt security.EncodedJwt) error {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
if resp.StatusCode >= 400 {
|
|
||||||
return fmt.Errorf("%s: %s", url, resp.Status)
|
|
||||||
}
|
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user