no naked returns in go; fix auth v3 unit tests
diff --git a/openstack/cdn/v1/base/requests.go b/openstack/cdn/v1/base/requests.go
index 99e7309..34d3b72 100644
--- a/openstack/cdn/v1/base/requests.go
+++ b/openstack/cdn/v1/base/requests.go
@@ -6,6 +6,7 @@
// entire API.
func Get(c *gophercloud.ServiceClient) (r GetResult) {
_, r.Err = c.Get(getURL(c), &r.Body, nil)
+ return
}
// Ping retrieves a ping to the server.
@@ -14,4 +15,5 @@
OkCodes: []int{204},
MoreHeaders: map[string]string{"Accept": ""},
})
+ return
}
diff --git a/openstack/cdn/v1/flavors/requests.go b/openstack/cdn/v1/flavors/requests.go
index fc05528..1977fe3 100644
--- a/openstack/cdn/v1/flavors/requests.go
+++ b/openstack/cdn/v1/flavors/requests.go
@@ -15,4 +15,5 @@
// Get retrieves a specific flavor based on its unique ID.
func Get(c *gophercloud.ServiceClient, id string) (r GetResult) {
_, r.Err = c.Get(getURL(c, id), &r.Body, nil)
+ return
}
diff --git a/openstack/cdn/v1/serviceassets/requests.go b/openstack/cdn/v1/serviceassets/requests.go
index e78508d..80c908f 100644
--- a/openstack/cdn/v1/serviceassets/requests.go
+++ b/openstack/cdn/v1/serviceassets/requests.go
@@ -47,4 +47,5 @@
url += q
}
_, r.Err = c.Delete(url, nil)
+ return
}
diff --git a/openstack/cdn/v1/services/requests.go b/openstack/cdn/v1/services/requests.go
index c0329d6..4c0c626 100644
--- a/openstack/cdn/v1/services/requests.go
+++ b/openstack/cdn/v1/services/requests.go
@@ -91,6 +91,7 @@
resp, err := c.Post(createURL(c), &b, nil, nil)
r.Header = resp.Header
r.Err = err
+ return
}
// Get retrieves a specific service based on its URL or its unique ID. For
@@ -105,6 +106,7 @@
url = getURL(c, idOrURL)
}
_, r.Err = c.Get(url, &r.Body, nil)
+ return
}
// Path is a JSON pointer location that indicates which service parameter is being added, replaced,
@@ -264,6 +266,7 @@
})
r.Header = resp.Header
r.Err = err
+ return
}
// Delete accepts a service's ID or its URL and deletes the CDN service
@@ -278,4 +281,5 @@
url = deleteURL(c, idOrURL)
}
_, r.Err = c.Delete(url, nil)
+ return
}