Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
heygsc authored Aug 1, 2024
1 parent 4065700 commit 248327a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/oxc_linter/src/rules/eslint/for_direction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ fn get_assignment_direction(assign: &AssignmentExpression) -> UpdateDirection {
let operator = &assign.operator;
let right = &assign.right;
let positive = match right {
Expression::NumericLiteral(r) => {
match r.value {
0.0 => return UNKNOWN,
_ => r.value.is_sign_positive(),
}
Expression::NumericLiteral(r) => match r.value {
0.0 => return UNKNOWN,
_ => r.value.is_sign_positive(),
},
Expression::UnaryExpression(right) => right.operator != UnaryOperator::UnaryNegation,
_ => return UNKNOWN,
Expand Down

0 comments on commit 248327a

Please sign in to comment.