mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
delete operation does not need this checking
This commit is contained in:
parent
cdae9fc680
commit
a57162e8bf
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue