mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
fixup a Python query, it didn't select something with a location
This commit is contained in:
@@ -43,4 +43,4 @@ where
|
||||
unused_local(unused, v) and
|
||||
// If unused is part of a tuple, count it as unused if all elements of that tuple are unused.
|
||||
forall(Name el | el = unused.getParentNode().(Tuple).getAnElt() | unused_local(el, _))
|
||||
select v, "Variable " + v.getId() + " is not used"
|
||||
select unused, "Variable " + v.getId() + " is not used"
|
||||
|
||||
Reference in New Issue
Block a user