Skip to content

Commit 3815643

Browse files
committed
C#: Remove recursion.
1 parent dfc6695 commit 3815643

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • csharp/ql/lib/semmle/code/csharp/frameworks

csharp/ql/lib/semmle/code/csharp/frameworks/OData.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class ODataActionParametersClass extends Class {
3636
* -- may hold the value of) an `ODataActionParameters` dictionary.
3737
*/
3838
private predicate isODataActionParametersValue(Expr e) {
39-
e.getType() instanceof ODataActionParametersClass
40-
or
41-
DataFlow::localExprFlow(any(Expr e0 | isODataActionParametersValue(e0)), e)
39+
exists(ParameterAccess e0 | e0.getType() instanceof ODataActionParametersClass |
40+
e0 = e or DataFlow::localExprFlow(e0, e)
41+
)
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)