SupportBundles: Fix list response when we don't have any bundles yet (#61619)

* SupportBundles: Return empty slice instead of nil when there are no
support bundles
This commit is contained in:
Karl Persson 2023-01-17 21:04:12 +01:00 committed by GitHub
parent 1ac89ea040
commit 05a683d462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ func (s *store) List() ([]supportbundles.Bundle, error) {
return nil, err
}
var res []supportbundles.Bundle
res := make([]supportbundles.Bundle, 0)
for _, items := range data {
for _, s := range items {
var b supportbundles.Bundle