Skip to content

Commit

Permalink
tsparser
Browse files Browse the repository at this point in the history
  • Loading branch information
fredr committed Jan 10, 2025
1 parent cd0bfc1 commit 91705ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsparser/src/parser/module_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ impl ModuleLoader {
) -> anyhow::Result<HashMap<FilePath, Lrc<Module>>> {
let mut result = HashMap::new();
for file in &ar.files {
if !file.name.extension().map_or(false, |ext| ext == "ts") {
if !file.name.extension().is_some_and(|ext| ext == "ts") {
continue;
}

Expand Down

0 comments on commit 91705ff

Please sign in to comment.