Skip to content

Commit

Permalink
Use makeOrganization
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Jul 6, 2021
1 parent e72d492 commit 4830e0a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/display/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4830e0a

Please sign in to comment.