File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ private newtype TPrintAstNode =
52
52
TStmtListNode ( StmtList list ) {
53
53
shouldPrint ( list .getAnItem ( ) , _) and
54
54
not list = any ( Module mod ) .getBody ( ) and
55
- not forall ( AstNode child | child = list .getAnItem ( ) | isNotNeeded ( child ) ) and
56
- exists ( list .getAnItem ( ) )
55
+ not forall ( AstNode child | child = list .getAnItem ( ) | isNotNeeded ( child ) )
57
56
} or
58
57
TRegExpTermNode ( RegExpTerm term ) {
59
58
exists ( StrConst str | term .getRootTerm ( ) = getParsedRegExp ( str ) and shouldPrint ( str , _) )
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ string prettyNode(DataFlow::Node node) {
58
58
*/
59
59
bindingset [ node]
60
60
string prettyNodeForInlineTest ( DataFlow:: Node node ) {
61
- exists ( node .asExpr ( ) ) and
62
61
result = prettyExpr ( node .asExpr ( ) )
63
62
or
64
63
exists ( Expr e | e = node .( DataFlow:: PostUpdateNode ) .getPreUpdateNode ( ) .asExpr ( ) |
You can’t perform that action at this time.
0 commit comments