mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: dataflow regression tests: fix flow_in_iteration
This commit is contained in:
@@ -201,8 +201,8 @@ def flow_through_type_test_if_no_class():
|
||||
def flow_in_iteration():
|
||||
t = ITERABLE_SOURCE # Seems to not be sunk anywhere
|
||||
for i in t:
|
||||
i
|
||||
return i
|
||||
SINK(i)
|
||||
SINK(i)
|
||||
|
||||
def flow_in_generator():
|
||||
seq = [SOURCE]
|
||||
|
||||
Reference in New Issue
Block a user