File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
python/ql/src/semmle/python/frameworks Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1388,9 +1388,6 @@ private module PrivateDjango {
1388
1388
// ---------------------------------------------------------------------------
1389
1389
// Helpers
1390
1390
// ---------------------------------------------------------------------------
1391
-
1392
-
1393
-
1394
1391
// ---------------------------------------------------------------------------
1395
1392
// Form and form field modeling
1396
1393
// ---------------------------------------------------------------------------
@@ -1458,7 +1455,6 @@ private module PrivateDjango {
1458
1455
// ---------------------------------------------------------------------------
1459
1456
// routing modeling
1460
1457
// ---------------------------------------------------------------------------
1461
-
1462
1458
/**
1463
1459
* In order to recognize a class as being a django view class, based on the `as_view`
1464
1460
* call, we need to be able to track such calls on _any_ class. This is provided by
Original file line number Diff line number Diff line change @@ -44,9 +44,7 @@ private Expr lastDecoratorCall(Function func) {
44
44
* print(inst.my_method)
45
45
* ```
46
46
*/
47
- private DataFlow:: LocalSourceNode poorMansFunctionTracker (
48
- DataFlow:: TypeTracker t , Function func
49
- ) {
47
+ private DataFlow:: LocalSourceNode poorMansFunctionTracker ( DataFlow:: TypeTracker t , Function func ) {
50
48
t .start ( ) and
51
49
(
52
50
not exists ( func .getADecorator ( ) ) and
@@ -61,9 +59,7 @@ private DataFlow::LocalSourceNode poorMansFunctionTracker(
61
59
result .asExpr ( ) = lastDecoratorCall ( func )
62
60
)
63
61
or
64
- exists ( DataFlow:: TypeTracker t2 |
65
- result = poorMansFunctionTracker ( t2 , func ) .track ( t2 , t )
66
- )
62
+ exists ( DataFlow:: TypeTracker t2 | result = poorMansFunctionTracker ( t2 , func ) .track ( t2 , t ) )
67
63
}
68
64
69
65
/**
You can’t perform that action at this time.
0 commit comments