From fbc7b8ed4d0ffe39b6c8b2e96af47aa8ebefef21 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Fri, 13 Sep 2024 22:00:12 +0900 Subject: [PATCH] not filter specifiers --- cli/tools/check.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cli/tools/check.rs b/cli/tools/check.rs index 620eed34916f72..e016318e7bdaa4 100644 --- a/cli/tools/check.rs +++ b/cli/tools/check.rs @@ -53,17 +53,7 @@ pub async fn check( let specifiers_for_typecheck = if check_flags.doc { let file_fetcher = factory.file_fetcher()?; - let mut specifiers_for_typecheck = specifiers - .iter() - .filter(|specifier| { - use MediaType::*; - matches!( - MediaType::from_specifier(specifier), - TypeScript | JavaScript | Tsx | Jsx | Mts | Mjs | Cts | Cjs - ) - }) - .cloned() - .collect::>(); + let mut specifiers_for_typecheck = specifiers.clone(); for s in &specifiers { let file = file_fetcher