Skip to content

Commit

Permalink
make callFunctionOnNode pass the original res to CallFunctionOn
Browse files Browse the repository at this point in the history
It's a typo to pass "&res" to CallFunctionOn.
  • Loading branch information
ZekeLu committed Feb 18, 2023
1 parent 2c1b719 commit b115f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func callFunctionOnNode(ctx context.Context, node *cdp.Node, function string, re
if err != nil {
return err
}
err = CallFunctionOn(function, &res,
err = CallFunctionOn(function, res,
func(p *runtime.CallFunctionOnParams) *runtime.CallFunctionOnParams {
return p.WithObjectID(r.ObjectID)
},
Expand Down

0 comments on commit b115f85

Please sign in to comment.