summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-02-22 21:14:54 -0300
committerGitHub <noreply@github.com>2017-02-22 21:14:54 -0300
commitd181113b82a29c035e92dc00c8385dbe41e5688b (patch)
tree547a20ce403e4a7f17578efa5c344840c85f0a40 /models
parent1f7837d6d62471d72e2b2c15f8ed07cd0a43fda9 (diff)
parentec3a696e2de605f794b36da58db30c849ac56904 (diff)
downloadgitea-d181113b82a29c035e92dc00c8385dbe41e5688b.tar.gz
gitea-d181113b82a29c035e92dc00c8385dbe41e5688b.zip
Merge pull request #1017 from ethantkoenig/fix_lint
Fix lint errors
Diffstat (limited to 'models')
-rw-r--r--models/helper.go2
-rw-r--r--models/repo.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/helper.go b/models/helper.go
index 93acadc989..6e8580524a 100644
--- a/models/helper.go
+++ b/models/helper.go
@@ -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
diff --git a/models/repo.go b/models/repo.go
index 218f15afe5..af8f688339 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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 {