Skip to content

Commit

Permalink
Update javascript/ql/lib/semmle/javascript/Collections.qll
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Krogh Kristensen <[email protected]>
  • Loading branch information
Napalys and erik-krogh authored Nov 21, 2024
1 parent 59df4de commit 7ee0a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/ql/lib/semmle/javascript/Collections.qll
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
}
}
Expand Down

0 comments on commit 7ee0a7b

Please sign in to comment.