Skip to content

Commit 2b08dd0

Browse files
committed
Go fmt
1 parent 64fbac8 commit 2b08dd0

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

relationships/r_foreignkey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

relationships/r_foreignkey_reverse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

relationships/r_genericforeignkey_reverse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

relationships/r_manytomany.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

schema/include.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

servers/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(),

utils/pagination.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package utils
22

33
import (
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

0 commit comments

Comments
 (0)