Rename variables to stop shadowing package name

parent a9f71e37
......@@ -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))
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment