Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Nov 4, 2024
1 parent c918ad8 commit 7eded1d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/lakectl/cmd/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ var identityCmd = &cobra.Command{

id := resp.JSON200.User.Id
CreationDate := resp.JSON200.User.CreationDate
email := resp.JSON200.User.Email
email := ""
if resp.JSON200.User.Email != nil {
email = *resp.JSON200.User.Email
}

Write(userInfoTemplate, struct {
UserID string
Email string
CreationDate int64
}{UserID: id, CreationDate: CreationDate, Email: *email})
}{UserID: id, CreationDate: CreationDate, Email: email})

},
}
Expand Down

0 comments on commit 7eded1d

Please sign in to comment.