Browse Source

Fix lint errors

Ethan Koenig 2 years ago
parent
commit
ec3a696e2d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      models/helper.go
  2. 1 1
      models/repo.go

+ 1 - 1
models/helper.go

@@ -6,7 +6,7 @@ package models
6 6
 
7 7
 func keysInt64(m map[int64]struct{}) []int64 {
8 8
 	var keys = make([]int64, 0, len(m))
9
-	for k, _ := range m {
9
+	for k := range m {
10 10
 		keys = append(keys, k)
11 11
 	}
12 12
 	return keys

+ 1 - 1
models/repo.go

@@ -1800,7 +1800,7 @@ type SearchRepoOptions struct {
1800 1800
 func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, _ int64, _ error) {
1801 1801
 	var (
1802 1802
 		sess *xorm.Session
1803
-		cond builder.Cond = builder.NewCond()
1803
+		cond = builder.NewCond()
1804 1804
 	)
1805 1805
 
1806 1806
 	if len(opts.Keyword) == 0 {