Skip to content

Commit cdbef2b

Browse files
bb-Ricardorobertsirc
authored andcommittedOct 4, 2024··
Revering change unrelated to issue #13176
Signed-off-by: ricardo.bartels@telekom.de <ricardo.bartels@telekom.de>
1 parent af13b0d commit cdbef2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎pkg/repo/index.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,6 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
353353
return i, err
354354
}
355355

356-
if i.APIVersion == "" {
357-
return i, ErrNoAPIVersion
358-
}
359-
360356
for name, cvs := range i.Entries {
361357
for idx := len(cvs) - 1; idx >= 0; idx-- {
362358
if cvs[idx] == nil {
@@ -379,6 +375,9 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
379375
i.Entries[name] = cvs
380376
}
381377
i.SortEntries()
378+
if i.APIVersion == "" {
379+
return i, ErrNoAPIVersion
380+
}
382381
return i, nil
383382
}
384383

0 commit comments

Comments
 (0)
Please sign in to comment.