From 58bfe112afe197e8adb0b96212450872b5c6678b Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Fri, 8 Sep 2017 14:15:04 -0400 Subject: [PATCH] commands/migrate: use varargs variant of AddCommand --- commands/command_migrate.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/command_migrate.go b/commands/command_migrate.go index 0e1eb962..e02a378d 100644 --- a/commands/command_migrate.go +++ b/commands/command_migrate.go @@ -248,10 +248,6 @@ func init() { cmd.PersistentFlags().StringSliceVar(&migrateExcludeRefs, "exclude-ref", nil, "An explicit list of refs to exclude") cmd.PersistentFlags().BoolVar(&migrateEverything, "everything", false, "Migrate all local references") - for _, subcommand := range []*cobra.Command{ - importCmd, info, - } { - cmd.AddCommand(subcommand) - } + cmd.AddCommand(importCmd, info) }) }