restore functionality for images
This commit is contained in:
parent
a788107028
commit
d8ebf82641
2
godo.go
2
godo.go
|
@ -101,7 +101,7 @@ type Response struct {
|
|||
|
||||
// Links that were returned with the response. These are parsed from
|
||||
// request body and not the header.
|
||||
Links []*LinkAction
|
||||
Links *Links
|
||||
|
||||
// Meta describes generic information about the response.
|
||||
Meta *Meta
|
||||
|
|
|
@ -234,11 +234,7 @@ func (s *ImagesServiceOp) list(ctx context.Context, opt *ListOptions, listOpt *l
|
|||
return nil, resp, err
|
||||
}
|
||||
if l := root.Links; l != nil {
|
||||
var wrappedActions []*LinkAction
|
||||
for _, element := range (*l).Actions {
|
||||
wrappedActions = append(wrappedActions, &element)
|
||||
}
|
||||
resp.Links = wrappedActions
|
||||
resp.Links = l;
|
||||
}
|
||||
if m := root.Meta; m != nil {
|
||||
resp.Meta = m
|
||||
|
|
Loading…
Reference in New Issue