Skip to content

Commit 00bf216

Browse files
authored
perf: remove a useless load_as_directory call (oxc-project#487)
1 parent f64911c commit 00bf216

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,9 +828,6 @@ impl<C: Cache> ResolverGeneric<C> {
828828
if let Some(path) = self.load_as_file(&cached_path, ctx)? {
829829
return Ok(Some(path));
830830
}
831-
if let Some(path) = self.load_as_directory(&cached_path, ctx)? {
832-
return Ok(Some(path));
833-
}
834831
}
835832
Ok(None)
836833
}

0 commit comments

Comments
 (0)