We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989ef47 commit 1586ea6Copy full SHA for 1586ea6
lister/list.go
@@ -34,16 +34,9 @@ func (l *RealLister) List(opts ListOptions) (model.SeshSessions, error) {
34
return model.SeshSessions{}, err
35
}
36
fullOrderedIndex = append(fullOrderedIndex, sessions.OrderedIndex...)
37
- filteredIndex := fullOrderedIndex[:0] // Create a slice with the same underlying array but length 0
38
for _, i := range sessions.OrderedIndex {
39
- if opts.HideAttached && sessions.Directory[i].Attached == 1 {
40
- // TODO: remove the item from the fullOrderedIndex
41
- continue
42
- }
43
- filteredIndex = append(filteredIndex, i)
44
fullDirectory[i] = sessions.Directory[i]
45
46
- fullOrderedIndex = filteredIndex
47
48
49
return model.SeshSessions{
0 commit comments