From ec9e462eab000028cb22862d043ce6edaef89896 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 18 Aug 2016 14:15:59 +0100 Subject: [PATCH] Linting --- src/github.com/matrix-org/go-neb/services/github/github.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/github/github.go b/src/github.com/matrix-org/go-neb/services/github/github.go index 4a4d982..490b5ef 100644 --- a/src/github.com/matrix-org/go-neb/services/github/github.go +++ b/src/github.com/matrix-org/go-neb/services/github/github.go @@ -301,12 +301,12 @@ func sameRepos(a *githubService, b *githubService) bool { getRepos := func(s *githubService) []string { r := make(map[string]bool) for _, roomConfig := range s.Rooms { - for ownerRepo, _ := range roomConfig.Repos { + for ownerRepo := range roomConfig.Repos { r[ownerRepo] = true } } var rs []string - for k, _ := range r { + for k := range r { rs = append(rs, k) } return rs @@ -320,7 +320,7 @@ func sameRepos(a *githubService, b *githubService) bool { sort.Strings(aRepos) sort.Strings(bRepos) - for i := 0; i < len(aRepos); i += 1 { + for i := 0; i < len(aRepos); i++ { if aRepos[i] != bRepos[i] { return false }