From ec3a696e2de605f794b36da58db30c849ac56904 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Wed, 22 Feb 2017 17:10:45 -0500 Subject: [PATCH] Fix lint errors --- models/helper.go | 2 +- models/repo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/helper.go b/models/helper.go index 93acadc989700..6e8580524aae2 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 218f15afe54c8..af8f68833904e 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 {