File tree Expand file tree Collapse file tree 7 files changed +9
-11
lines changed
Expand file tree Collapse file tree 7 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func (fk ForeignKey) GetValues(
8585 },
8686 }
8787 if * stringId != nil {
88- newValue .Data = schema.InstancePointer {
88+ newValue .Data = schema.InstancePointer {
8989 Type : fk .Type ,
9090 ID : * stringId ,
9191 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func (fkr ForeignKeyReverse) GetValues(
6666 for _ , id := range ids {
6767 value := schema.Page {
6868 Metadata : map [string ]interface {}{},
69- Data : []interface {}{},
69+ Data : []interface {}{},
7070 }
7171 value .Metadata ["total" ] = 0
7272 value .Metadata ["count" ] = 0
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ func (gfkr GenericForeignKeyReverse) GetValues(
7070 for _ , id := range ids {
7171 value := schema.Page {
7272 Metadata : map [string ]interface {}{},
73- Data : []interface {}{},
73+ Data : []interface {}{},
7474 }
7575 value .Metadata ["total" ] = 0
7676 value .Metadata ["count" ] = 0
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ func (m2m ManyToMany) GetValues(
6565 for _ , id := range ids {
6666 value := schema.Page {
6767 Metadata : map [string ]interface {}{},
68- Data : []interface {}{},
68+ Data : []interface {}{},
6969 }
7070 value .Metadata ["total" ] = 0
7171 value .Metadata ["count" ] = 0
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ func (i *Include) endNodes(prefix string) []string {
88 var nodes []string
99 for key , child := range i .Children {
1010 if len (child .Children ) > 0 {
11- nodes = append (nodes , child .endNodes (prefix + key + "." )... )
11+ nodes = append (nodes , child .endNodes (prefix + key + "." )... )
1212 } else {
13- nodes = append (nodes , prefix + key )
13+ nodes = append (nodes , prefix + key )
1414 }
1515 }
1616 return nodes
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ func listGET(
264264 }
265265
266266 pageLinks := utils .GetPaginationLinks (
267- r .Host + r .URL .Path ,
267+ r .Host + r .URL .Path ,
268268 pageOffset ,
269269 pageSize ,
270270 c .GetServer ().GetDefaultDirectPageSize (),
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package utils
22
33import (
44 "math"
5- "strconv"
65 "net/url"
6+ "strconv"
77)
88
99// lazy encoded
@@ -35,9 +35,7 @@ func GetPaginationLinks(
3535 defaultPageSize int ,
3636 totalItems int ,
3737 extraQueries map [string ]string ,
38- ) (
39- map [string ]* string ,
40- ) {
38+ ) map [string ]* string {
4139 links := map [string ]* string {}
4240
4341 // calculate what the last page would be
You can’t perform that action at this time.
0 commit comments