From 4830e0a185787f072ab4ffa1152ba9b5c3f4de52 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Tue, 6 Jul 2021 00:11:51 -0300 Subject: [PATCH] Use makeOrganization --- internal/display/organizations.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/display/organizations.go b/internal/display/organizations.go index 629af7622..9af37648a 100644 --- a/internal/display/organizations.go +++ b/internal/display/organizations.go @@ -56,12 +56,7 @@ func (r *Renderer) OrganizationList(organizations []*management.Organization) { var res []View for _, o := range organizations { - res = append(res, &organizationView{ - ID: o.GetID(), - Name: o.GetName(), - DisplayName: o.GetDisplayName(), - raw: o, - }) + res = append(res, makeOrganizationView(o, r.MessageWriter)) } r.Results(res)