Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
sunrabbit123 committed Aug 18, 2023
1 parent 2e0f7ef commit 5b4c117
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/stc_ts_file_analyzer/src/analyzer/generic/inference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,6 @@ impl Analyzer<'_, '_> {
if r.is_num() {
return match src.parse() {
Ok(value) => Type::Lit(LitType {
if let Ok(value) = src.parse() {
return Type::Lit(LitType {
span,
lit: RTsLit::Number(RNumber { span, value, raw: None }),
metadata: Default::default(),
Expand All @@ -641,8 +639,6 @@ impl Analyzer<'_, '_> {
tracker: Default::default(),
}),
};
});
}
}

if l.is_enum_type() || l.is_enum_variant() {
Expand Down

0 comments on commit 5b4c117

Please sign in to comment.