Skip to content

Commit

Permalink
fix: iterating over slice (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmourick committed Mar 7, 2024
1 parent 5c5f36f commit 11758df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/list.go
Expand Up @@ -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))
}
Expand Down

0 comments on commit 11758df

Please sign in to comment.