Skip to content

Commit 26da6a1

Browse files
committed
Python: Apply autoformat.
1 parent 5946a4a commit 26da6a1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

python/ql/src/Variables/UnusedLocalVariable.ql

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ import python
1515
import Definition
1616

1717
predicate unused_local(Name unused, LocalVariable v) {
18-
forex(Definition def |
19-
def.getNode() = unused |
18+
forex(Definition def | def.getNode() = unused |
2019
def.getVariable() = v and
2120
def.isUnused() and
2221
not exists(def.getARedef()) and
@@ -27,9 +26,9 @@ predicate unused_local(Name unused, LocalVariable v) {
2726
)
2827
}
2928

30-
3129
from Name unused, LocalVariable v
32-
where unused_local(unused, v) and
33-
// If unused is part of a tuple, count it as unused if all elements of that tuple are unused.
34-
forall(Name el | el = unused.getParentNode().(Tuple).getAnElt() | unused_local(el, _))
30+
where
31+
unused_local(unused, v) and
32+
// If unused is part of a tuple, count it as unused if all elements of that tuple are unused.
33+
forall(Name el | el = unused.getParentNode().(Tuple).getAnElt() | unused_local(el, _))
3534
select unused, "The value assigned to local variable '" + v.getId() + "' is never used."

0 commit comments

Comments
 (0)