This commit is contained in:
Christoph Polcin 2018-05-15 11:51:59 +02:00
parent a3c4dbab4a
commit 49e0e45d8f

View File

@ -200,7 +200,7 @@ func (c *Client) RemoveAll(path string) error {
} }
rs.Body.Close() rs.Body.Close()
if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 { if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 {
return nil return nil
} else { } else {
return newPathError("Remove", path, rs.StatusCode) return newPathError("Remove", path, rs.StatusCode)