Skip to content

Commit

Permalink
Remove dead code in the stylesheet parser (#1640)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stof committed Mar 23, 2022
1 parent 0db7ff2 commit 85ca0b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/parse/stylesheet.dart
Expand Up @@ -405,9 +405,7 @@ abstract class StylesheetParser extends Parser {
var beforeDeclaration = scanner.state;
Expression value;
try {
value = lookingAtChildren()
? StringExpression(Interpolation([], scanner.emptySpan), quotes: true)
: expression();
value = expression();

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

0 comments on commit 85ca0b2

Please sign in to comment.