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>
  • Loading branch information
bb-Ricardo authored and robertsirc committed Oct 4, 2024
1 parent af13b0d commit cdbef2b
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 cdbef2b

Please sign in to comment.