From 167ffecafcd1a086c2b2443871a29cbcdb5f6536 Mon Sep 17 00:00:00 2001 From: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Wed, 31 Jan 2024 02:46:27 +0530 Subject: [PATCH] Small fix... --- api/manifests_github.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/api/manifests_github.go b/api/manifests_github.go index 3989fcaca..8c5b0e7c1 100644 --- a/api/manifests_github.go +++ b/api/manifests_github.go @@ -63,12 +63,10 @@ func ManifestsGithub(w http.ResponseWriter, r *http.Request) { for _, version := range pkg_versions { manifests := getManifests(pkg_id, version, srcZip) - for _, manifest := range manifests { - result = append(result, VersionAndManifests{ - Version: version, - Manifests: []Manifest{manifest}, - }) - } + result = append(result, VersionAndManifests{ + Version: version, + Manifests: manifests, + }) } w.Header().Set("Content-Type", "application/json") @@ -77,8 +75,8 @@ func ManifestsGithub(w http.ResponseWriter, r *http.Request) { } type VersionAndManifests struct { - Version string - Manifests []Manifest + Version string + Manifests []Manifest } type Manifest struct {