mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Python: avoid selecting getLocation() in py/unnecessary-delete
This commit is contained in:
@@ -36,5 +36,5 @@ where
|
||||
ex = Value::named("sys.exc_info") and
|
||||
ex.getACall().getScope() = f
|
||||
)
|
||||
select del, "Unnecessary deletion of local variable $@ in function $@.", e.getLocation(),
|
||||
e.toString(), f.getLocation(), f.getName()
|
||||
select del, "Unnecessary deletion of local variable $@ in function $@.", e, e.toString(), f,
|
||||
f.getName()
|
||||
|
||||
Reference in New Issue
Block a user