@@ -99,7 +99,6 @@ func (s AGPLIDPSync) SyncGroups(ctx context.Context, db database.Store, user dat
99
99
// membership via the groups the user is in.
100
100
userOrgs := make (map [uuid.UUID ][]database.GetGroupsRow )
101
101
for _ ,g := range userGroups {
102
- g := g
103
102
userOrgs [g .Group .OrganizationID ]= append (userOrgs [g .Group .OrganizationID ],g )
104
103
}
105
104
@@ -337,8 +336,6 @@ func (s GroupSyncSettings) ParseClaims(orgID uuid.UUID, mergedClaims jwt.MapClai
337
336
338
337
groups := make ([]ExpectedGroup ,0 )
339
338
for _ ,group := range parsedGroups {
340
- group := group
341
-
342
339
// Legacy group mappings happen before the regex filter.
343
340
mappedGroupName ,ok := s .LegacyNameMapping [group ]
344
341
if ok {
@@ -355,7 +352,6 @@ func (s GroupSyncSettings) ParseClaims(orgID uuid.UUID, mergedClaims jwt.MapClai
355
352
mappedGroupIDs ,ok := s .Mapping [group ]
356
353
if ok {
357
354
for _ ,gid := range mappedGroupIDs {
358
- gid := gid
359
355
groups = append (groups ,ExpectedGroup {OrganizationID :orgID ,GroupID :& gid })
360
356
}
361
357
continue