Skip to content

Commit

Permalink
Revering change unrelated to issue #13176
Browse files Browse the repository at this point in the history
Signed-off-by: ricardo.bartels@telekom.de <ricardo.bartels@telekom.de>
(cherry picked from commit cdbef2b)
  • Loading branch information
bb-Ricardo authored and mattfarina committed Oct 9, 2024
1 parent 9fc8f1b commit 13654a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/repo/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
return i, err
}

if i.APIVersion == "" {
return i, ErrNoAPIVersion
}

for name, cvs := range i.Entries {
for idx := len(cvs) - 1; idx >= 0; idx-- {
if cvs[idx] == nil {
Expand All @@ -379,6 +375,9 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
i.Entries[name] = cvs
}
i.SortEntries()
if i.APIVersion == "" {
return i, ErrNoAPIVersion
}
return i, nil
}

Expand Down

0 comments on commit 13654a5

Please sign in to comment.