Skip to content

Commit

Permalink
made small changes
Browse files Browse the repository at this point in the history
Signed-off-by: Chanakya Thirumala Setty <[email protected]>
  • Loading branch information
Chanakya-TS committed Jul 21, 2023
1 parent 9ac804f commit 9a96b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file not shown.
6 changes: 2 additions & 4 deletions external-providers/golang-dependency-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,19 @@ func main() {
return
}
if len(ll) == 0 {
log.Fatal(fmt.Errorf("no dependencies"))
return
}

m := map[uri.URI][]provider.Dep{}
m := map[uri.URI][]*provider.Dep{}
for u, d := range ll {
m[u] = ConvertDagItemsToList(d)
m[u] = provider.ConvertDagItemsToList(d)
}

jsonStr, err := json.Marshal(m)
if err != nil {
log.Fatal(fmt.Errorf("unable to marshal dependencies"))
return
}

fmt.Println(string(jsonStr))

}
Expand Down

0 comments on commit 9a96b4c

Please sign in to comment.