From 11758df9eaa085df02b387c1403c4d0de6c47c4f Mon Sep 17 00:00:00 2001 From: Mathijs van Mourick <14082160+mmourick@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:50:12 +0100 Subject: [PATCH] fix: iterating over slice (#27) --- cmd/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/list.go b/cmd/list.go index 8fa2c3d..3db6ff5 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -59,7 +59,7 @@ var ( } // show the list taking into consideration the max results - limit := min(maxResults, len(versions)) + limit := min(maxResults, len(finalList)) for _, version := range finalList[:limit] { fmt.Println(helpers.ColoredVersion(version)) }