Skip to content

Commit 806ed00

Browse files
Merge branch 'main' into unicron-test-main-branch-on-dev
2 parents 9b28aaa + e0e9aed commit 806ed00

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cla-backend-go/gerrits/service.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,19 @@ func (s service) AddGerrit(ctx context.Context, claGroupID string, projectSFID s
136136

137137
var groupNameCcla, groupNameIcla string
138138
if params.GroupIDIcla != "" {
139-
group, err := s.lfGroup.GetGroup(ctx, params.GroupIDIcla)
140-
if err != nil {
139+
group, err2 := s.lfGroup.GetGroup(ctx, params.GroupIDIcla)
140+
if err2 != nil {
141141
message := fmt.Sprintf("unable to get LDAP ICLA Group: %s", params.GroupIDIcla)
142-
log.WithFields(f).WithError(err).Warnf(message)
142+
log.WithFields(f).WithError(err2).Warnf(message)
143143
return nil, errors.New(message)
144144
}
145145
groupNameIcla = group.Title
146146
}
147147
if params.GroupIDCcla != "" {
148-
group, err := s.lfGroup.GetGroup(ctx, params.GroupIDCcla)
149-
if err != nil {
148+
group, err2 := s.lfGroup.GetGroup(ctx, params.GroupIDCcla)
149+
if err2 != nil {
150150
message := fmt.Sprintf("unable to get LDAP CCLA Group: %s", params.GroupIDCcla)
151-
log.WithFields(f).WithError(err).Warnf(message)
151+
log.WithFields(f).WithError(err2).Warnf(message)
152152
return nil, errors.New(message)
153153
}
154154
groupNameCcla = group.Title

0 commit comments

Comments
 (0)