Skip to content

Commit 96e6537

Browse files
chore: collapse if statement for linter
1 parent 8647e08 commit 96e6537

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/biome_js_analyze/src/lint/correctness/no_precision_loss.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ fn is_precision_lost_in_base_other(num: &str, radix: u8) -> bool {
168168
// exceeds 53 bits, the number cannot be exactly represented, as the lower bits would be truncated.
169169
// Span = max - min + 1
170170
// We know min_bit_index is Some because we set it above if it was None
171-
if let Some(min) = min_bit_index {
172-
if max_bit_index - min + 1 > 53 {
173-
return true;
174-
}
171+
if let Some(min) = min_bit_index
172+
&& max_bit_index - min + 1 > 53
173+
{
174+
return true;
175175
}
176176
}
177177

0 commit comments

Comments
 (0)