Skip to content

Commit 3ee8081

Browse files
committed
Minor refactor
1 parent bb0030e commit 3ee8081

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/ide-service/pkg/server/server.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,9 @@ func (s *IDEServiceServer) GetConfig(ctx context.Context, req *api.GetConfigRequ
100100
configCatClient := experiments.NewClient()
101101
attributes := experiments.Attributes{
102102
UserID: req.User.Id,
103-
UserEmail: "",
103+
UserEmail: req.User.GetEmail(),
104104
}
105105

106-
if req.User.Email != nil {
107-
attributes.UserEmail = *req.User.Email
108-
}
109106
experimentalIdesEnabled := configCatClient.GetBoolValue(ctx, "experimentalIdes", false, attributes)
110107

111108
if experimentalIdesEnabled {

0 commit comments

Comments
 (0)