tmp commit, auth unit tests broken
diff --git a/pagination/pager.go b/pagination/pager.go
index 415442f..9fa1f93 100644
--- a/pagination/pager.go
+++ b/pagination/pager.go
@@ -145,7 +145,7 @@
// key is the map key for the page body if the body type is `map[string]interface{}`.
var key string
// Iterate over the pages to concatenate the bodies.
- err := p.EachPage(func(page Page) (bool, error) {
+ err = p.EachPage(func(page Page) (bool, error) {
b := page.GetBody().(map[string]interface{})
for k := range b {
// If it's a linked page, we don't want the `links`, we want the other one.
@@ -164,7 +164,7 @@
body.SetMapIndex(reflect.ValueOf(key), reflect.ValueOf(pagesSlice))
case []byte:
// Iterate over the pages to concatenate the bodies.
- err := p.EachPage(func(page Page) (bool, error) {
+ err = p.EachPage(func(page Page) (bool, error) {
b := page.GetBody().([]byte)
pagesSlice = append(pagesSlice, b)
// seperate pages with a comma
@@ -188,7 +188,7 @@
body.SetBytes(b)
case []interface{}:
// Iterate over the pages to concatenate the bodies.
- err := p.EachPage(func(page Page) (bool, error) {
+ err = p.EachPage(func(page Page) (bool, error) {
b := page.GetBody().([]interface{})
pagesSlice = append(pagesSlice, b...)
return true, nil
@@ -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