Skip to content

Commit

Permalink
Small fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
vedantmgoyal9 committed Jan 30, 2024
1 parent 1782319 commit 167ffec
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions api/manifests_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 {
Expand Down

0 comments on commit 167ffec

Please sign in to comment.