aboutsummaryrefslogtreecommitdiffstats
path: root/commands/commands.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-08 16:17:15 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 16:17:15 +0100
commit97bc5ccd229b7b438262a84e3c42783b4d4a82af (patch)
tree6e5ef89c8ecce28599e9623d441a18406b2f2f93 /commands/commands.go
parent77dc783fcb64adf67d10fc3232c4f06f8e3d5392 (diff)
downloadgit-bug-97bc5ccd229b7b438262a84e3c42783b4d4a82af.tar.gz
various cleanups suggested by golang-ci
Diffstat (limited to 'commands/commands.go')
-rw-r--r--commands/commands.go4
1 files changed, 1 insertions, 3 deletions
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))