Update javascript/ql/lib/semmle/javascript/Collections.qll

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Napalys Klicius
2024-11-21 14:02:42 +01:00
committed by GitHub
parent 59df4de8af
commit 7ee0a7b398

View File

@@ -160,7 +160,7 @@ private module CollectionDataFlow {
exists(DataFlow::MethodCallNode call |
call = DataFlow::globalVarRef(["Map", "Object"]).getAMemberCall("groupBy") and
pred = call.getArgument(0) and
(succ = call.getCallback(1).getParameter(0) or succ = call.getALocalUse())
(succ = call.getCallback(1).getParameter(0) or succ = call)
)
}
}