Browse Source

Merge pull request #1017 from ethantkoenig/fix_lint

Fix lint errors
for-closed-social
Andrey Nering 7 years ago
committed by GitHub
parent
commit
d181113b82
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 View File

@ -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

+ 1
- 1
models/repo.go View File

@ -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 {

Loading…
Cancel
Save