Skip to content

Commit

Permalink
Merge pull request #53 from tamalsaha/patch-1
Browse files Browse the repository at this point in the history
Use LookupPath instead of deprecated Lookup
  • Loading branch information
verdverm authored Mar 12, 2022
2 parents 36b6070 + 4822bff commit 1b90070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/go-api/flow/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (C *CustomTask) Run(t *flow.Task, pErr error) error {
next := map[string]interface{}{
"bar": C.Val + 1,
}
hello := val.Lookup("hello")
hello := val.LookupPath(cue.ParsePath("foo"))
if hello.Exists() {
next["hello"] = "world"
}
Expand Down

0 comments on commit 1b90070

Please sign in to comment.