Skip to content

Commit

Permalink
revering change unrelated to issue helm#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 committed Aug 14, 2024
1 parent af13b0d commit 1932bd2
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 1932bd2

Please sign in to comment.