Skip to content

Commit 0287572

Browse files
committed
C#: Address review comment.
1 parent 3c7510b commit 0287572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/src/API Abuse/DisposeNotCalledOnException.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ private class DisposeCall extends MethodCall {
5454

5555
private predicate localFlowStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
5656
DataFlow::localFlowStep(nodeFrom, nodeTo) and
57-
not exists(AssignableDefinition def, UsingStmt uds |
57+
not exists(AssignableDefinition def, UsingStmt us |
5858
nodeTo.asExpr() = def.getAReachableRead() and
59-
def.getTargetAccess() = uds.getAVariableDeclExpr().getAccess()
59+
def.getTargetAccess() = us.getAVariableDeclExpr().getAccess()
6060
)
6161
}
6262

0 commit comments

Comments
 (0)