Skip to content

Commit

Permalink
fix(docs): Remove duplicate call to GetObservedCompositeResource in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Nobuhara <[email protected]>
  • Loading branch information
Mitsuwa committed Oct 11, 2023
1 parent f69b324 commit ccc779d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
// Read the desired number of widgets from our observed XR. We don't have
// a struct for the XR, so we use an unstructured, fieldpath based getter.
widgets, err := oxr.Resource.GetInteger("spec.widgets")
oxr, err := request.GetObservedCompositeResource(req)
if err != nil {
response.Fatal(rsp, errors.Wrap(err, "cannot get desired spec.widgets from observed XR"))
return rsp, nil
Expand Down

0 comments on commit ccc779d

Please sign in to comment.