We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e809d7 commit 4baf193Copy full SHA for 4baf193
crates/oxc_linter/src/rules/unicorn/prefer_at.rs
@@ -510,7 +510,8 @@ fn get_negative_index_value(expr: &Expression) -> String {
510
511
fn get_positive_index(expr: &Expression) -> Option<i64> {
512
match expr.get_inner_expression() {
513
- Expression::NumericLiteral(num) if num.value >= 0.0 => {
+ Expression::NumericLiteral(num) if num.value >= 0.0 =>
514
+ {
515
#[expect(clippy::cast_possible_truncation)]
516
Some(num.value as i64)
517
}
0 commit comments