mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Python: missed removing these
`set.add` and `list.append` do not return a value
This commit is contained in:
@@ -4334,11 +4334,6 @@ private module StdlibPrivate {
|
||||
}
|
||||
|
||||
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
|
||||
// existing elements
|
||||
input = "Argument[self].ListElement" and
|
||||
output = "ReturnValue.ListElement" and
|
||||
preservesValue = true
|
||||
or
|
||||
// newly added element added to this
|
||||
input = "Argument[0]" and
|
||||
output = "Argument[self].ListElement" and
|
||||
@@ -4366,11 +4361,6 @@ private module StdlibPrivate {
|
||||
}
|
||||
|
||||
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
|
||||
// existing elements
|
||||
input = "Argument[self].SetElement" and
|
||||
output = "ReturnValue.SetElement" and
|
||||
preservesValue = true
|
||||
or
|
||||
// newly added element added to this
|
||||
input = "Argument[0]" and
|
||||
output = "Argument[self].SetElement" and
|
||||
|
||||
Reference in New Issue
Block a user