Skip to content

Commit 9a7afa9

Browse files
committed
Python: more idiomatic cartesian product
1 parent f7cbcb2 commit 9a7afa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ predicate lambdaCreation(Node creation, LambdaCallKind kind, DataFlowCallable c)
930930
/** Holds if `call` is a lambda call of kind `kind` where `receiver` is the lambda expression. */
931931
predicate lambdaCall(DataFlowCall call, LambdaCallKind kind, Node receiver) {
932932
receiver = call.(SummaryCall).getReceiver() and
933-
kind = kind
933+
exists(kind)
934934
}
935935

936936
/** Extra data-flow steps needed for lambda flow analysis. */

0 commit comments

Comments
 (0)