diff --git a/connector/github/github.go b/connector/github/github.go index 8399e8d21668996fd8d999d2e31cbd9fb8f64691..d28cb0966df7bf1829d96976f93b2b457a463b78 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)) } } }