Skip to content

Commit

Permalink
Fix deep copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
grundleborg committed Dec 14, 2023
1 parent e46039a commit e410d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/legal_hold.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (lh *LegalHold) DeepCopy() LegalHold {

if len(lh.UserIDs) > 0 {
newLegalHold.UserIDs = make([]string, len(lh.UserIDs))
copy(lh.UserIDs, newLegalHold.UserIDs)
copy(newLegalHold.UserIDs, lh.UserIDs)
}

return newLegalHold
Expand Down

0 comments on commit e410d0a

Please sign in to comment.