Remove useless test in the |reportLeftRecursion| pass
Empty sequences are not allowed anymore so we don't have to test for them.
This commit is contained in:
parent
898a7b5a2d
commit
4ec9e6ba10
|
@ -11,9 +11,7 @@ function reportLeftRecursion(ast) {
|
|||
},
|
||||
|
||||
sequence: function(node, appliedRules) {
|
||||
if (node.elements.length > 0) {
|
||||
check(node.elements[0], appliedRules);
|
||||
}
|
||||
check(node.elements[0], appliedRules);
|
||||
},
|
||||
|
||||
rule_ref: function(node, appliedRules) {
|
||||
|
|
Loading…
Reference in a new issue