From 967fa6ddb2fafc65e69d50270c2863f770d985ef Mon Sep 17 00:00:00 2001 From: Chris Pates Date: Fri, 21 Jun 2024 15:22:21 +0100 Subject: [PATCH] Update client.go --- internal/google/client.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/google/client.go b/internal/google/client.go index 3ec613c..606a7b3 100644 --- a/internal/google/client.go +++ b/internal/google/client.go @@ -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.