Skip to content

Commit 0560548

Browse files
committed
drive-by simplification of the python regex-tree
1 parent 1aeaefc commit 0560548

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/ql/lib/semmle/python/RegexTreeView.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,11 @@ module Impl implements RegexTreeViewSig {
277277
*/
278278
class RegExpQuantifier extends RegExpTerm, TRegExpQuantifier {
279279
int part_end;
280-
boolean maybe_empty;
281280
boolean may_repeat_forever;
282281

283282
RegExpQuantifier() {
284283
this = TRegExpQuantifier(re, start, end) and
285-
re.qualifiedPart(start, part_end, end, maybe_empty, may_repeat_forever)
284+
re.qualifiedPart(start, part_end, end, _, may_repeat_forever)
286285
}
287286

288287
override RegExpTerm getChild(int i) {

0 commit comments

Comments
 (0)