Skip to content

Commit 9dbf7d1

Browse files
committed
JS: removed unnecessary getALocalSource from ArrayCallBackDataTaintStep
1 parent 28ead40 commit 9dbf7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/Arrays.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ private module ArrayLibraries {
505505
override predicate step(DataFlow::Node obj, DataFlow::Node element) {
506506
exists(DataFlow::MethodCallNode call |
507507
call.getMethodName() = ["findLast", "find", "findLastIndex"] and
508-
obj = call.getReceiver().getALocalSource() and
508+
obj = call.getReceiver() and
509509
element = call.getCallback(0).getParameter(0)
510510
)
511511
}

0 commit comments

Comments
 (0)