diff options
Diffstat (limited to 'write.go')
-rw-r--r-- | write.go | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -118,9 +118,6 @@ func (server *Server) handleAddInternal(state *State, r *message.AddRequest) (in server.logger.Warnf("Could not add %s to memberOf of %s: %s", dn, member, err) continue } - if memberGroups == nil { - memberGroups = []string{} - } alreadyMember := false for _, mb := range memberGroups { @@ -473,9 +470,6 @@ func (server *Server) handleModifyInternal(state *State, r *message.ModifyReques server.logger.Warnf("Could not add %s to memberOf of %s: %s", dn, addMem, err) continue } - if memberOf == nil { - memberOf = []string{} - } alreadyMember := false for _, mb := range memberOf { @@ -501,9 +495,6 @@ func (server *Server) handleModifyInternal(state *State, r *message.ModifyReques server.logger.Warnf("Could not remove %s from memberOf of %s: %s", dn, delMem, err) continue } - if memberOf == nil { - memberOf = []string{} - } newMemberOf := []string{} for _, g := range memberOf { if g != dn { |