Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Young Bu Park <youngp@microsoft.com>
  • Loading branch information
youngbupark committed Jan 26, 2024
1 parent 9e9d0de commit c940f16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/corerp/frontend/controller/applications/graph_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ func outputResourcesFromAPIData(resource generated.GenericResource) []*corerpv20
}

func resolveConnections(resource generated.GenericResource, jsonRefPath string, converter func(any) (string, corerpv20231001preview.Direction, error)) []*corerpv20231001preview.ApplicationGraphConnection {
// We need to access the connections in a weakly-typed way since the data type we're
// working with is a property bag.
p, err := jsonpointer.New(jsonRefPath)
if err != nil {
// This should never fail since we're hard-coding the path.
Expand Down

0 comments on commit c940f16

Please sign in to comment.