Skip to content

Commit d181113

Browse files
authored
Merge pull request #1017 from ethantkoenig/fix_lint
Fix lint errors
2 parents 1f7837d + ec3a696 commit d181113

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package models
66

77
func keysInt64(m map[int64]struct{}) []int64 {
88
var keys = make([]int64, 0, len(m))
9-
for k, _ := range m {
9+
for k := range m {
1010
keys = append(keys, k)
1111
}
1212
return keys

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ type SearchRepoOptions struct {
18001800
func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, _ int64, _ error) {
18011801
var (
18021802
sess *xorm.Session
1803-
cond builder.Cond = builder.NewCond()
1803+
cond = builder.NewCond()
18041804
)
18051805

18061806
if len(opts.Keyword) == 0 {

0 commit comments

Comments
 (0)