From e8763531287a18ab31a0eb3776916e1d04893d4c Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Thu, 15 Nov 2018 09:00:37 -0800 Subject: [PATCH] Rename variables to stop shadowing package name --- connector/github/github.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/connector/github/github.go b/connector/github/github.go index 8399e8d2..d28cb096 100644 --- a/connector/github/github.go +++ b/connector/github/github.go @@ -390,12 +390,12 @@ func (c *githubConnector) userGroups(ctx context.Context, client *http.Client) ( } groups := make([]string, 0) - for _, org := range orgs { - if teams, ok := orgTeams[org]; !ok { - groups = append(groups, org) + for _, o := range orgs { + if teams, ok := orgTeams[o]; !ok { + groups = append(groups, o) } else { - for _, team := range teams { - groups = append(groups, formatTeamName(org, team)) + for _, t := range teams { + groups = append(groups, formatTeamName(o, t)) } } }