Skip to content

Commit

Permalink
JS: removed unnecessary getALocalSource from ArrayCallBackDataFlowStep
Browse files Browse the repository at this point in the history
  • Loading branch information
Napalys committed Nov 20, 2024
1 parent 9dbf7d1 commit 64c45de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/ql/lib/semmle/javascript/Arrays.qll
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ private module ArrayLibraries {
exists(DataFlow::MethodCallNode call |
call.getMethodName() = ["findLast", "find", "findLastIndex"] and
prop = arrayLikeElement() and
obj = call.getReceiver().getALocalSource() and
obj = call.getReceiver() and
element = call.getCallback(0).getParameter(0)
)
}
Expand Down

0 comments on commit 64c45de

Please sign in to comment.