Shifting object storage operations to common delete result
diff --git a/openstack/objectstorage/v1/containers/requests.go b/openstack/objectstorage/v1/containers/requests.go
index 3fae4d9..9f3b2af 100644
--- a/openstack/objectstorage/v1/containers/requests.go
+++ b/openstack/objectstorage/v1/containers/requests.go
@@ -123,12 +123,10 @@
// Delete is a function that deletes a container.
func Delete(c *gophercloud.ServiceClient, containerName string) DeleteResult {
var res DeleteResult
- resp, err := perigee.Request("DELETE", deleteURL(c, containerName), perigee.Options{
+ _, res.Err = perigee.Request("DELETE", deleteURL(c, containerName), perigee.Options{
MoreHeaders: c.AuthenticatedHeaders(),
OkCodes: []int{202, 204},
})
- res.Header = resp.HttpResponse.Header
- res.Err = err
return res
}