mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Remove use of deprecated function theEmptyTupleObject.
This commit is contained in:
@@ -1625,7 +1625,7 @@ module PointsTo {
|
||||
context.isRuntime() and
|
||||
exists(ControlFlowNode param |
|
||||
param = def.getDefiningNode() |
|
||||
varargs_points_to(param, cls) and value = theEmptyTupleObject() and origin = param
|
||||
varargs_points_to(param, cls) and value = TupleObject::empty() and origin = param
|
||||
or
|
||||
varargs_points_to(param, cls) and value = param and origin = param
|
||||
or
|
||||
|
||||
@@ -130,7 +130,7 @@ class Object extends @py_object {
|
||||
or
|
||||
this = theFalseObject() and result = false
|
||||
or
|
||||
this = theEmptyTupleObject() and result = false
|
||||
this = TupleObject::empty() and result = false
|
||||
or
|
||||
exists(Tuple t | t = this.getOrigin() |
|
||||
exists(t.getAnElt()) and result = true
|
||||
|
||||
Reference in New Issue
Block a user