mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Python: Modernise the py/mixed-tuple-returns query.
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
import python
|
||||
|
||||
predicate returns_tuple_of_size(Function func, int size, AstNode origin) {
|
||||
exists(Return return, TupleObject val |
|
||||
exists(Return return, TupleValue val |
|
||||
return.getScope() = func and
|
||||
return.getValue().refersTo(val, origin) |
|
||||
size = val.getLength()
|
||||
return.getValue().pointsTo(val, origin) |
|
||||
size = val.length()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user