Skip to content

Commit 64c45de

Browse files
committed
JS: removed unnecessary getALocalSource from ArrayCallBackDataFlowStep
1 parent 9dbf7d1 commit 64c45de

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
@@ -492,7 +492,7 @@ private module ArrayLibraries {
492492
exists(DataFlow::MethodCallNode call |
493493
call.getMethodName() = ["findLast", "find", "findLastIndex"] and
494494
prop = arrayLikeElement() and
495-
obj = call.getReceiver().getALocalSource() and
495+
obj = call.getReceiver() and
496496
element = call.getCallback(0).getParameter(0)
497497
)
498498
}

0 commit comments

Comments
 (0)