Skip to content

Commit

Permalink
Output packages as a single string
Browse files Browse the repository at this point in the history
removing the need to join the array using jq
  • Loading branch information
dnephin committed Sep 3, 2022
1 parent 53ec2e0 commit 7f0dfd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tool/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ type bucket struct {
}

func writeBuckets(buckets []bucket) error {
out := make(map[int][]string)
out := make(map[int]string)
for i, bucket := range buckets {
out[i] = bucket.Packages
out[i] = strings.Join(bucket.Packages, " ")
}

raw, err := json.Marshal(out)
Expand Down

0 comments on commit 7f0dfd7

Please sign in to comment.