aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/helper.go2
-rw-r--r--models/repo.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/helper.go b/models/helper.go
index 93acadc989..6e8580524a 100644
--- a/models/helper.go
+++ b/models/helper.go
@@ -6,7 +6,7 @@ package models
func keysInt64(m map[int64]struct{}) []int64 {
var keys = make([]int64, 0, len(m))
- for k, _ := range m {
+ for k := range m {
keys = append(keys, k)
}
return keys
diff --git a/models/repo.go b/models/repo.go
index 218f15afe5..af8f688339 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1800,7 +1800,7 @@ type SearchRepoOptions struct {
func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, _ int64, _ error) {
var (
sess *xorm.Session
- cond builder.Cond = builder.NewCond()
+ cond = builder.NewCond()
)
if len(opts.Keyword) == 0 {