Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPates committed Jun 21, 2024
1 parent ceeb03e commit 967fa6d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/google/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,7 @@ func (c *client) GetUsers(query string) ([]*admin.User, error) {
// So we need to replace any 'zero width space' strings with a single 'space' to allow comparison and sync
for _, user := range u {
user.Name.GivenName = strings.Replace(user.Name.GivenName, string('\u200B'), " ", -1)
//if len(user.Name.GivenName) == 0 {
// user.Name.GivenName = " "
//}
user.Name.FamilyName = strings.Replace(user.Name.FamilyName, string('\u200B'), " ", -1)
//if len(user.Name.FamilyName) == 0 {
// user.Name.FamilyName = " "
//}
}

// Check we've got some users otherwise something is wrong.
Expand Down

0 comments on commit 967fa6d

Please sign in to comment.