no naked returns in go; fix auth v3 unit tests
diff --git a/pagination/http.go b/pagination/http.go
index db31b55..cb4b4ae 100644
--- a/pagination/http.go
+++ b/pagination/http.go
@@ -53,7 +53,7 @@
// Request performs an HTTP request and extracts the http.Response from the result.
func Request(client *gophercloud.ServiceClient, headers map[string]string, url string) (*http.Response, error) {
- return client.Request("GET", url, gophercloud.RequestOpts{
+ return client.Get(url, nil, &gophercloud.RequestOpts{
MoreHeaders: headers,
OkCodes: []int{200, 204},
})
diff --git a/pagination/pager.go b/pagination/pager.go
index 9fa1f93..1d3e907 100644
--- a/pagination/pager.go
+++ b/pagination/pager.go
@@ -202,7 +202,7 @@
body.Index(i).Set(reflect.ValueOf(s))
}
default:
- err = gophercloud.ErrUnexpectedType{}
+ err := gophercloud.ErrUnexpectedType{}
err.Expected = "map[string]interface{}/[]byte/[]interface{}"
err.Actual = fmt.Sprintf("%v", reflect.TypeOf(testPage.GetBody()))
return nil, err