Skip to content

Commit

Permalink
chore(linter): code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin-Yeung committed Jul 31, 2023
1 parent 0d60455 commit 0f61a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/no_loss_of_precision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl NoLossOfPrecision {
}
let stored = match (raw.scientific, raw.precision) {
(true, _) => format!("{:.1$e}", node.value, raw.frac.len()),
(false, _precision @ 0) => format!("{}", node.value),
(false, 0) => format!("{}", node.value),
(false, precision ) => format!("{:.1$}", node.value, precision),
};
let stored = if let Some(s) = Self::normalize(&stored) { s } else { return true };
Expand Down

0 comments on commit 0f61a9b

Please sign in to comment.