Skip to content

Commit

Permalink
Merge pull request go-gitea#1017 from ethantkoenig/fix_lint
Browse files Browse the repository at this point in the history
Fix lint errors
  • Loading branch information
andreynering authored Feb 23, 2017
2 parents 1f7837d + ec3a696 commit d181113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d181113

Please sign in to comment.