Skip to content

Commit

Permalink
not filter specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Sep 13, 2024
1 parent 13235e2 commit fbc7b8e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cli/tools/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();
let mut specifiers_for_typecheck = specifiers.clone();

for s in &specifiers {
let file = file_fetcher
Expand Down

0 comments on commit fbc7b8e

Please sign in to comment.