Skip to content

Commit ceeb03e

Browse files
committed
Update client.go
1 parent c24ffb5 commit ceeb03e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

internal/google/client.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ func (c *client) GetUsers(query string) ([]*admin.User, error) {
113113
u = append(u, users.Users...)
114114
return nil
115115
})
116-
return u, err
117116
} else {
118117

119118
// The Google api doesn't support multi-part queries, but we do so we need to split into an array of query strings
@@ -135,13 +134,13 @@ func (c *client) GetUsers(query string) ([]*admin.User, error) {
135134
// So we need to replace any 'zero width space' strings with a single 'space' to allow comparison and sync
136135
for _, user := range u {
137136
user.Name.GivenName = strings.Replace(user.Name.GivenName, string('\u200B'), " ", -1)
138-
if len(user.Name.GivenName) == 0 {
139-
user.Name.GivenName = " "
140-
}
137+
//if len(user.Name.GivenName) == 0 {
138+
// user.Name.GivenName = " "
139+
//}
141140
user.Name.FamilyName = strings.Replace(user.Name.FamilyName, string('\u200B'), " ", -1)
142-
if len(user.Name.FamilyName) == 0 {
143-
user.Name.FamilyName = " "
144-
}
141+
//if len(user.Name.FamilyName) == 0 {
142+
// user.Name.FamilyName = " "
143+
//}
145144
}
146145

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

0 commit comments

Comments
 (0)