From 8926095660bdeb0712064051b3084688ec4c8d34 Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Mon, 26 Apr 2021 15:28:51 +0100 Subject: [PATCH] remove redundant getCommand for image repository Signed-off-by: Somtochi Onyekwere --- cmd/flux/get_image_all.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/flux/get_image_all.go b/cmd/flux/get_image_all.go index a4bda6b3..4e66b832 100644 --- a/cmd/flux/get_image_all.go +++ b/cmd/flux/get_image_all.go @@ -49,13 +49,6 @@ var getImageAllCmd = &cobra.Command{ list: &imageUpdateAutomationListAdapter{&autov1.ImageUpdateAutomationList{}}, }, } - c := getCommand{ - apiType: imageRepositoryType, - list: imageRepositoryListAdapter{&imagev1.ImageRepositoryList{}}, - } - if err := c.run(cmd, args); err != nil { - logger.Failuref(err.Error()) - } for _, c := range allImageCmd { if err := c.run(cmd, args); err != nil {