Skip to content

Commit

Permalink
Fix array indexing
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Mooring <[email protected]>
  • Loading branch information
salim-b and jmooring authored Sep 19, 2023
1 parent bf3f1dd commit 68e6d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/hvm/use.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (r *repository) fetchTags() error {
if Config.SortAscending {
tagNames = tagNames[len(tagNames)-n:]
} else {
tagNames = tagNames[0 : n-1]
tagNames = tagNames[:n]
}
}

Expand Down

0 comments on commit 68e6d71

Please sign in to comment.