@@ -736,16 +736,15 @@ private boolean consumeIgnorable() {
736736 if (ast < 0 ) {
737737 pos = cssLimit ; // Unclosed /* comment */
738738 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 ;
749748 }
750749 }
751750 } else if (next == '/' ) { // Non-standard but widely supported
@@ -778,10 +777,9 @@ private boolean consumeIgnorable() {
778777 }
779778 if (pos == posBefore ) {
780779 return false ;
781- } else {
782- breakOutput ();
783- return true ;
784780 }
781+ breakOutput ();
782+ return true ;
785783 }
786784
787785 private void breakOutput () {
@@ -846,9 +844,8 @@ private boolean consumeAtKeyword() {
846844 --pos ; // back up over '@'
847845 sb .setLength (bufferLengthBeforeWrite ); // Unwrite the '@'
848846 return false ;
849- } else {
850- return true ;
851847 }
848+ return true ;
852849 }
853850
854851
@@ -1122,11 +1119,10 @@ private TokenType consumeString() {
11221119 pos += 2 ;
11231120 }
11241121 continue ;
1125- } else {
1126- decoded = consumeAndDecodeEscapeSequence ();
1127- if (decoded < 0 ) {
1128- break ;
1129- }
1122+ }
1123+ decoded = consumeAndDecodeEscapeSequence ();
1124+ if (decoded < 0 ) {
1125+ break ;
11301126 }
11311127 } else {
11321128 ++pos ;
@@ -1137,11 +1133,11 @@ private TokenType consumeString() {
11371133 if (closed ) {
11381134 sb .append ('\'' );
11391135 return TokenType .STRING ;
1140- } else { // Drop <bad-string>s
1141- sb .setLength (startOfStringOnOutput );
1142- breakOutput ();
1143- return TokenType .WHITESPACE ;
11441136 }
1137+ // Drop <bad-string>s
1138+ sb .setLength (startOfStringOnOutput );
1139+ breakOutput ();
1140+ return TokenType .WHITESPACE ;
11451141 }
11461142
11471143 private @ Nullable TokenType consumeHash () {
@@ -1258,11 +1254,10 @@ private boolean consumeUnicodeRange() {
12581254 sb .setCharAt (bufferStart + 1 , 'r' );
12591255 sb .setCharAt (bufferStart + 2 , 'l' );
12601256 return TokenType .URL ;
1261- } else {
1262- sb .setLength (bufferStart );
1263- breakOutput ();
1264- return TokenType .WHITESPACE ;
12651257 }
1258+ sb .setLength (bufferStart );
1259+ breakOutput ();
1260+ return TokenType .WHITESPACE ;
12661261 } else if (parenAfter ) {
12671262 openBracket ('(' );
12681263 ++pos ;
0 commit comments