File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/ql/lib/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ module Flask {
194
194
API:: Node api_node ;
195
195
196
196
FlaskViewClass ( ) {
197
- this . getParent ( ) = Views:: View:: subclassRef ( ) . getAnImmediateUse ( ) . asExpr ( ) and
198
- api_node . getAnImmediateUse ( ) . asExpr ( ) = this . getParent ( )
197
+ api_node = Views:: View:: subclassRef ( ) and
198
+ this . getParent ( ) = api_node . getAnImmediateUse ( ) . asExpr ( )
199
199
}
200
200
201
201
/** Gets a function that could handle incoming requests, if any. */
@@ -219,8 +219,8 @@ module Flask {
219
219
*/
220
220
class FlaskMethodViewClass extends FlaskViewClass {
221
221
FlaskMethodViewClass ( ) {
222
- this . getParent ( ) = Views:: MethodView:: subclassRef ( ) . getAnImmediateUse ( ) . asExpr ( ) and
223
- api_node . getAnImmediateUse ( ) . asExpr ( ) = this . getParent ( )
222
+ api_node = Views:: MethodView:: subclassRef ( ) and
223
+ this . getParent ( ) = api_node . getAnImmediateUse ( ) . asExpr ( )
224
224
}
225
225
226
226
override Function getARequestHandler ( ) {
You can’t perform that action at this time.
0 commit comments