summaryrefslogtreecommitdiffstats
path: root/models/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/helper.go')
-rw-r--r--models/helper.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/helper.go b/models/helper.go
index a284424bb5..91063b2d13 100644
--- a/models/helper.go
+++ b/models/helper.go
@@ -5,7 +5,7 @@
package models
func keysInt64(m map[int64]struct{}) []int64 {
- var keys = make([]int64, 0, len(m))
+ keys := make([]int64, 0, len(m))
for k := range m {
keys = append(keys, k)
}
@@ -13,7 +13,7 @@ func keysInt64(m map[int64]struct{}) []int64 {
}
func valuesRepository(m map[int64]*Repository) []*Repository {
- var values = make([]*Repository, 0, len(m))
+ values := make([]*Repository, 0, len(m))
for _, v := range m {
values = append(values, v)
}
@@ -21,7 +21,7 @@ func valuesRepository(m map[int64]*Repository) []*Repository {
}
func valuesUser(m map[int64]*User) []*User {
- var values = make([]*User, 0, len(m))
+ values := make([]*User, 0, len(m))
for _, v := range m {
values = append(values, v)
}