From 06f5664e9dc335e3cfc42475e8f807036312a801 Mon Sep 17 00:00:00 2001 From: Steve Taylor Date: Fri, 6 Mar 2020 12:42:57 +0000 Subject: Removed extraneous comments and defaults plus amended variable declaration Signed-off-by: Steve Taylor --- pkg/api/handlers/generic/images.go | 1 - 1 file changed, 1 deletion(-) (limited to 'pkg/api/handlers/generic') diff --git a/pkg/api/handlers/generic/images.go b/pkg/api/handlers/generic/images.go index 63f71eeff..3da5807ec 100644 --- a/pkg/api/handlers/generic/images.go +++ b/pkg/api/handlers/generic/images.go @@ -305,7 +305,6 @@ func GetImages(w http.ResponseWriter, r *http.Request) { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "Failed get images")) return } - // +1 removed from len(images) as this leaves a null entry at the end of the image array var summaries = make([]*handlers.ImageSummary, len(images)) for j, img := range images { is, err := handlers.ImageToImageSummary(img) -- cgit v1.2.3-54-g00ecf