Skip to content

Commit af1a98a

Browse files
committed
fix: coderabbit feedback
1 parent 3d75efe commit af1a98a

File tree

1 file changed

+1
-1
lines changed
  • crates/biome_js_type_info/src

1 file changed

+1
-1
lines changed

crates/biome_js_type_info/src/type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl Type {
205205
self.as_raw_data().is_some_and(|ty| match ty {
206206
TypeData::Literal(literal) => match literal.as_ref() {
207207
Literal::BigInt(literal) => literal
208-
.replace('n', "")
208+
.trim_end_matches('n')
209209
.parse::<i64>()
210210
.ok()
211211
.is_some_and(|literal_value| literal_value == value),

0 commit comments

Comments
 (0)