remove case for map[string]interface from switch statement in AllPages (#276)
diff --git a/pagination/pager.go b/pagination/pager.go
index 76e4af1..6f1609e 100644
--- a/pagination/pager.go
+++ b/pagination/pager.go
@@ -155,10 +155,8 @@
for k, v := range b {
// If it's a linked page, we don't want the `links`, we want the other one.
if !strings.HasSuffix(k, "links") {
+ // check the field's type. we only want []interface{} (which is really []map[string]interface{})
switch vt := v.(type) {
- case map[string]interface{}:
- key = k
- pagesSlice = append(pagesSlice, vt)
case []interface{}:
key = k
pagesSlice = append(pagesSlice, vt...)