mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
JS: removed unnecessary getALocalSource from ArrayCallBackDataFlowStep
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user