From 97bc5ccd229b7b438262a84e3c42783b4d4a82af Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 8 Feb 2020 16:17:15 +0100 Subject: various cleanups suggested by golang-ci --- commands/commands.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'commands/commands.go') diff --git a/commands/commands.go b/commands/commands.go index a30c38a5..bd8cb14d 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -27,9 +27,7 @@ func runCommands(cmd *cobra.Command, args []string) error { cmd := queue[0] queue = queue[1:] allCmds = append(allCmds, cmd) - for _, c := range cmd.Commands() { - queue = append(queue, c) - } + queue = append(queue, cmd.Commands()...) } sort.Sort(commandSorterByName(allCmds)) -- cgit