Revering change unrelated to issue #13176

Signed-off-by: ricardo.bartels@telekom.de <ricardo.bartels@telekom.de>
(cherry picked from commit cdbef2b7d1)
release-3.16 v3.16.2
ricardo.bartels@telekom.de 3 months ago committed by Matt Farina
parent 9fc8f1b614
commit 13654a52f7
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -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 {
@ -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
}

Loading…
Cancel
Save