Skip to content

Commit 58bb16e

Browse files
committed
Python: Modernise Variables/Undefined.qll
1 parent 34f9135 commit 58bb16e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

python/ql/src/Variables/Undefined.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ private predicate first_use(NameNode u, EssaVariable v) {
3737
)
3838
}
3939

40-
/* Holds if `call` is a call of the form obj.method_name(...) and
40+
/* Holds if `call` is a call of the form obj.method_name(...) and
4141
* there is a function called `method_name` that can exit the program.
4242
*/
4343
private predicate maybe_call_to_exiting_function(CallNode call) {
44-
exists(FunctionObject exits, string name |
44+
exists(FunctionValue exits, string name |
4545
exits.neverReturns() and exits.getName() = name
4646
|
4747
call.getFunction().(NameNode).getId() = name or
@@ -119,5 +119,3 @@ class UninitializedConfig extends TaintTracking::Configuration {
119119
}
120120

121121
}
122-
123-

0 commit comments

Comments
 (0)