@@ -736,16 +736,15 @@ private boolean consumeIgnorable() {
736
736
if (ast < 0 ) {
737
737
pos = cssLimit ; // Unclosed /* comment */
738
738
break ;
739
- } else {
740
- // Advance over a run of '*'s.
741
- pos = ast + 1 ;
742
- while (pos < cssLimit && css .charAt (pos ) == '*' ) {
743
- ++pos ;
744
- }
745
- if (pos < cssLimit && css .charAt (pos ) == '/' ) {
746
- ++pos ;
747
- break ;
748
- }
739
+ }
740
+ // Advance over a run of '*'s.
741
+ pos = ast + 1 ;
742
+ while (pos < cssLimit && css .charAt (pos ) == '*' ) {
743
+ ++pos ;
744
+ }
745
+ if (pos < cssLimit && css .charAt (pos ) == '/' ) {
746
+ ++pos ;
747
+ break ;
749
748
}
750
749
}
751
750
} else if (next == '/' ) { // Non-standard but widely supported
@@ -778,10 +777,9 @@ private boolean consumeIgnorable() {
778
777
}
779
778
if (pos == posBefore ) {
780
779
return false ;
781
- } else {
782
- breakOutput ();
783
- return true ;
784
780
}
781
+ breakOutput ();
782
+ return true ;
785
783
}
786
784
787
785
private void breakOutput () {
@@ -846,9 +844,8 @@ private boolean consumeAtKeyword() {
846
844
--pos ; // back up over '@'
847
845
sb .setLength (bufferLengthBeforeWrite ); // Unwrite the '@'
848
846
return false ;
849
- } else {
850
- return true ;
851
847
}
848
+ return true ;
852
849
}
853
850
854
851
@@ -1122,11 +1119,10 @@ private TokenType consumeString() {
1122
1119
pos += 2 ;
1123
1120
}
1124
1121
continue ;
1125
- } else {
1126
- decoded = consumeAndDecodeEscapeSequence ();
1127
- if (decoded < 0 ) {
1128
- break ;
1129
- }
1122
+ }
1123
+ decoded = consumeAndDecodeEscapeSequence ();
1124
+ if (decoded < 0 ) {
1125
+ break ;
1130
1126
}
1131
1127
} else {
1132
1128
++pos ;
@@ -1137,11 +1133,11 @@ private TokenType consumeString() {
1137
1133
if (closed ) {
1138
1134
sb .append ('\'' );
1139
1135
return TokenType .STRING ;
1140
- } else { // Drop <bad-string>s
1141
- sb .setLength (startOfStringOnOutput );
1142
- breakOutput ();
1143
- return TokenType .WHITESPACE ;
1144
1136
}
1137
+ // Drop <bad-string>s
1138
+ sb .setLength (startOfStringOnOutput );
1139
+ breakOutput ();
1140
+ return TokenType .WHITESPACE ;
1145
1141
}
1146
1142
1147
1143
private @ Nullable TokenType consumeHash () {
@@ -1258,11 +1254,10 @@ private boolean consumeUnicodeRange() {
1258
1254
sb .setCharAt (bufferStart + 1 , 'r' );
1259
1255
sb .setCharAt (bufferStart + 2 , 'l' );
1260
1256
return TokenType .URL ;
1261
- } else {
1262
- sb .setLength (bufferStart );
1263
- breakOutput ();
1264
- return TokenType .WHITESPACE ;
1265
1257
}
1258
+ sb .setLength (bufferStart );
1259
+ breakOutput ();
1260
+ return TokenType .WHITESPACE ;
1266
1261
} else if (parenAfter ) {
1267
1262
openBracket ('(' );
1268
1263
++pos ;
0 commit comments