JS: removed unnecessary getALocalSource from ArrayCallBackDataFlowStep

This commit is contained in:
Napalys
2024-11-20 14:57:00 +01:00
parent 9dbf7d1828
commit 64c45debdb

View File

@@ -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)
)
}