From 5b4c1171ae4cd8875a06560962630df29ab9c93e Mon Sep 17 00:00:00 2001 From: sunrabbit123 Date: Sat, 19 Aug 2023 03:26:23 +0900 Subject: [PATCH] a --- crates/stc_ts_file_analyzer/src/analyzer/generic/inference.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/stc_ts_file_analyzer/src/analyzer/generic/inference.rs b/crates/stc_ts_file_analyzer/src/analyzer/generic/inference.rs index 19617e99b9..b747ecf9a3 100644 --- a/crates/stc_ts_file_analyzer/src/analyzer/generic/inference.rs +++ b/crates/stc_ts_file_analyzer/src/analyzer/generic/inference.rs @@ -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(), @@ -641,8 +639,6 @@ impl Analyzer<'_, '_> { tracker: Default::default(), }), }; - }); - } } if l.is_enum_type() || l.is_enum_variant() {