Skip to content

Commit b016413

Browse files
committed
remove more user id
1 parent 9e457b6 commit b016413

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/cmd/ls/ls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (ls Ls) RunUser(_ bool) error {
282282

283283
func (ls Ls) ShowAllWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, allWorkspaces []entity.Workspace) {
284284
userWorkspaces := store.FilterForUserWorkspaces(allWorkspaces, user.ID)
285-
ls.displayWorkspacesAndHelp(org, otherOrgs, userWorkspaces, allWorkspaces, user.ID)
285+
ls.displayWorkspacesAndHelp(org, otherOrgs, userWorkspaces, allWorkspaces)
286286

287287
projects := virtualproject.NewVirtualProjects(allWorkspaces)
288288

@@ -300,10 +300,10 @@ func (ls Ls) ShowAllWorkspaces(org *entity.Organization, otherOrgs []entity.Orga
300300
func (ls Ls) ShowUserWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, allWorkspaces []entity.Workspace) {
301301
userWorkspaces := store.FilterForUserWorkspaces(allWorkspaces, user.ID)
302302

303-
ls.displayWorkspacesAndHelp(org, otherOrgs, userWorkspaces, allWorkspaces, user.ID)
303+
ls.displayWorkspacesAndHelp(org, otherOrgs, userWorkspaces, allWorkspaces)
304304
}
305305

306-
func (ls Ls) displayWorkspacesAndHelp(org *entity.Organization, otherOrgs []entity.Organization, userWorkspaces []entity.Workspace, allWorkspaces []entity.Workspace, userID string) {
306+
func (ls Ls) displayWorkspacesAndHelp(org *entity.Organization, otherOrgs []entity.Organization, userWorkspaces []entity.Workspace, allWorkspaces []entity.Workspace) {
307307
if len(userWorkspaces) == 0 {
308308
ls.terminal.Vprint(ls.terminal.Yellow("No instances in org %s\n", org.Name))
309309
if len(allWorkspaces) > 0 {

0 commit comments

Comments
 (0)