We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f7837d + ec3a696 commit d181113Copy full SHA for d181113
models/helper.go
@@ -6,7 +6,7 @@ package models
6
7
func keysInt64(m map[int64]struct{}) []int64 {
8
var keys = make([]int64, 0, len(m))
9
- for k, _ := range m {
+ for k := range m {
10
keys = append(keys, k)
11
}
12
return keys
models/repo.go
@@ -1800,7 +1800,7 @@ type SearchRepoOptions struct {
1800
func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, _ int64, _ error) {
1801
var (
1802
sess *xorm.Session
1803
- cond builder.Cond = builder.NewCond()
+ cond = builder.NewCond()
1804
)
1805
1806
if len(opts.Keyword) == 0 {
0 commit comments