Python: avoid selecting getLocation() in py/unnecessary-delete

This commit is contained in:
Nick Rolfe
2023-06-05 10:44:22 +01:00
parent 06d48dca67
commit c67a350e36
2 changed files with 3 additions and 3 deletions

View File

@@ -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()