Skip to content

Commit

Permalink
Stop working around dart-lang/linter#4381 (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Aug 21, 2023
1 parent 8f0eca3 commit 58cbab4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/src/ast/sass/expression/binary_operation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ final class BinaryOperationExpression implements Expression {
var right = this.right; // Hack to make analysis work.
var rightNeedsParens = switch (right) {
BinaryOperationExpression(:var operator) =>
// dart-lang/linter#4381
// ignore: unnecessary_this
operator.precedence <= this.operator.precedence &&
// ignore: unnecessary_this
!(operator == this.operator && operator.isAssociative),
ListExpression(hasBrackets: false, contents: [_, _, ...]) => true,
_ => false
Expand Down

0 comments on commit 58cbab4

Please sign in to comment.