Skip to content

Commit 9a1e895

Browse files
committed
Python: missed removing these
`set.add` and `list.append` do not return a value
1 parent 3b558a0 commit 9a1e895

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4334,11 +4334,6 @@ private module StdlibPrivate {
43344334
}
43354335

43364336
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
4337-
// existing elements
4338-
input = "Argument[self].ListElement" and
4339-
output = "ReturnValue.ListElement" and
4340-
preservesValue = true
4341-
or
43424337
// newly added element added to this
43434338
input = "Argument[0]" and
43444339
output = "Argument[self].ListElement" and
@@ -4366,11 +4361,6 @@ private module StdlibPrivate {
43664361
}
43674362

43684363
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
4369-
// existing elements
4370-
input = "Argument[self].SetElement" and
4371-
output = "ReturnValue.SetElement" and
4372-
preservesValue = true
4373-
or
43744364
// newly added element added to this
43754365
input = "Argument[0]" and
43764366
output = "Argument[self].SetElement" and

0 commit comments

Comments
 (0)