Skip to content

Commit f1b0a81

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
1 parent d6e6825 commit f1b0a81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/ql/lib/semmle/python/ApiGraphs.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,9 @@ module API {
597597
// "benign" and let subclasses edges flow through anyway.
598598
// see example in https://github.com/django/django/blob/c2250cfb80e27cdf8d098428824da2800a18cadf/tests/auth_tests/test_views.py#L40-L46
599599
(
600-
not exists(clsExpr.getADecorator()) and
601600
ref.asExpr() = clsExpr
602601
or
603-
ref.asExpr() = clsExpr.getADecoratorCall() and
604-
not exists(PY::Call otherDecorator | otherDecorator.getArg(0) = ref.asExpr())
602+
ref.asExpr() = clsExpr.getADecoratorCall()
605603
)
606604
)
607605
or

0 commit comments

Comments
 (0)