Skip to content

Commit

Permalink
fix: remaining usages of hasOwnProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL committed Jul 25, 2024
1 parent bb2c2ac commit b9f0b47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function findNamedChild(
let obj = variables

// if we have a global matching the exact name of the reference, this is probably what we want
if (Object.prototype.hasOwnProperty.call(obj, reference)) {
if (obj[reference]) {
return obj[reference]
}

Expand Down
2 changes: 1 addition & 1 deletion tests/handleEvent.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"ContractStarted": {
"Condition": {
"$eq": [
"$.ContractId",
"$ContractId",
"abc123"
]
},
Expand Down

0 comments on commit b9f0b47

Please sign in to comment.