File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -545,13 +545,10 @@ Parser.prototype = {
545
545
filterChain : function ( ) {
546
546
var left = this . expression ( ) ;
547
547
var token ;
548
- while ( true ) {
549
- if ( ( token = this . expect ( '|' ) ) ) {
550
- left = this . binaryFn ( left , token . fn , this . filter ( ) ) ;
551
- } else {
552
- return left ;
553
- }
548
+ while ( ( token = this . expect ( '|' ) ) ) {
549
+ left = this . binaryFn ( left , token . fn , this . filter ( ) ) ;
554
550
}
551
+ return left ;
555
552
} ,
556
553
557
554
filter : function ( ) {
@@ -624,13 +621,10 @@ Parser.prototype = {
624
621
logicalOR : function ( ) {
625
622
var left = this . logicalAND ( ) ;
626
623
var token ;
627
- while ( true ) {
628
- if ( ( token = this . expect ( '||' ) ) ) {
629
- left = this . binaryFn ( left , token . fn , this . logicalAND ( ) ) ;
630
- } else {
631
- return left ;
632
- }
624
+ while ( ( token = this . expect ( '||' ) ) ) {
625
+ left = this . binaryFn ( left , token . fn , this . logicalAND ( ) ) ;
633
626
}
627
+ return left ;
634
628
} ,
635
629
636
630
logicalAND : function ( ) {
You can’t perform that action at this time.
0 commit comments