diff --git a/go/processtree/processtree.go b/go/processtree/processtree.go index e2ecd95..0dcdd67 100644 --- a/go/processtree/processtree.go +++ b/go/processtree/processtree.go @@ -58,9 +58,7 @@ func (tree *ProcessTree) AllCommandsAndAliases() []string { var values []string for _, command := range tree.Commands { values = append(values, command.Name) - for _, alias := range command.Aliases { - values = append(values, alias) - } + values = append(values, command.Aliases...) } return values }