From 71f73a4b31c79c14aababca67b0f172fc79948dd Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Mon, 5 Dec 2022 22:17:51 +0100 Subject: [PATCH] cmd/list: Remove redundant initializations Fallout from 2369da5d31830e5cd3e1a13857a686365875ae61 https://github.com/containers/toolbox/pull/1188 --- src/cmd/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/list.go b/src/cmd/list.go index 072b499..aa097b2 100644 --- a/src/cmd/list.go +++ b/src/cmd/list.go @@ -142,7 +142,7 @@ func getContainers() ([]toolboxContainer, error) { for _, container := range containers { var c toolboxContainer - var isToolboxContainer bool = false + var isToolboxContainer bool containerJSON, err := json.Marshal(container) if err != nil { @@ -205,7 +205,7 @@ func getImages() ([]toolboxImage, error) { for _, image := range images { var i toolboxImage - var isToolboxImage bool = false + var isToolboxImage bool imageJSON, err := json.Marshal(image) if err != nil {