From 4da05598247f90010b3b4ebeaa617b6fb500d911 Mon Sep 17 00:00:00 2001 From: gkovacs81 Date: Mon, 12 Oct 2015 22:07:54 +0200 Subject: [PATCH] Remove parameter --- images.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/images.go b/images.go index 19538ef..993b02f 100644 --- a/images.go +++ b/images.go @@ -142,7 +142,7 @@ func (x *ImagesCommand) Execute(args []string) error { var buffer bytes.Buffer if imagesCommand.Tree { - jsonToText(&buffer, imagesCommand.NoTruncate, imagesCommand.OnlyLabeled, roots, imagesByParent, "") + jsonToText(&buffer, imagesCommand.NoTruncate, roots, imagesByParent, "") } if imagesCommand.Dot { imagesToDot(&buffer, images) @@ -215,7 +215,7 @@ func filterImages (images *[]Image, byParent *map[string][]Image) (filteredImage return filteredImages, filteredChildren } -func jsonToText(buffer *bytes.Buffer, noTrunc bool, onlyLabeled bool, images []Image, byParent map[string][]Image, prefix string) { +func jsonToText(buffer *bytes.Buffer, noTrunc bool, images []Image, byParent map[string][]Image, prefix string) { var length = len(images) if length > 1 { for index, image := range images { @@ -228,14 +228,14 @@ func jsonToText(buffer *bytes.Buffer, noTrunc bool, onlyLabeled bool, images []I nextPrefix = "│ " } if subimages, exists := byParent[image.Id]; exists { - jsonToText(buffer, noTrunc, onlyLabeled, subimages, byParent, prefix+nextPrefix) + jsonToText(buffer, noTrunc, subimages, byParent, prefix+nextPrefix) } } } else { for _, image := range images { PrintTreeNode(buffer, noTrunc, image, prefix+"└─") if subimages, exists := byParent[image.Id]; exists { - jsonToText(buffer, noTrunc, onlyLabeled, subimages, byParent, prefix+" ") + jsonToText(buffer, noTrunc, subimages, byParent, prefix+" ") } } }