Skip to content

Commit 1847a57

Browse files
committed
remove TODO
1 parent 7ca6426 commit 1847a57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/ql/lib/semmle/python/Function.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ class FunctionDef extends Assign {
178178
override string toString() { result = "FunctionDef" }
179179

180180
/** Gets the function for this statement */
181-
Function getDefinedFunction() {
182-
result = f.getInnerScope() // XXX: This behaves very differently. But from inspecting the results of the previous version, that had every function in the same scope as the result.
183-
}
181+
Function getDefinedFunction() { result = f.getInnerScope() }
184182

185183
override Stmt getLastStatement() { result = this.getDefinedFunction().getLastStatement() }
186184
}

0 commit comments

Comments
 (0)