Skip to content

Commit 85ca0b2

Browse files
authored
Remove dead code in the stylesheet parser (#1640)
At that point, the scanner is still at the same position than the previous check for children returning a nested declaration, so it is impossible for it to be looking at children.
1 parent 0db7ff2 commit 85ca0b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/src/parse/stylesheet.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ abstract class StylesheetParser extends Parser {
405405
var beforeDeclaration = scanner.state;
406406
Expression value;
407407
try {
408-
value = lookingAtChildren()
409-
? StringExpression(Interpolation([], scanner.emptySpan), quotes: true)
410-
: expression();
408+
value = expression();
411409

412410
if (lookingAtChildren()) {
413411
// Properties that are ambiguous with selectors can't have additional

0 commit comments

Comments
 (0)