We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2281497 commit 112d382Copy full SHA for 112d382
crates/stylex-path-resolver/src/resolvers/mod.rs
@@ -46,13 +46,12 @@ pub fn resolve_file_path(
46
.unwrap();
47
48
if import_path_str.starts_with(".")
49
- && let Ok(resolution) =
50
- resolver_without_aliases.resolve(source_directory_path, &import_path_str)
+ && let Ok(resolution) = resolver_without_aliases.resolve(source_directory_path, import_path_str)
51
{
52
return Ok(resolution.into_path_buf());
53
}
54
55
- match resolver_with_aliases.resolve(source_file_path, &import_path_str) {
+ match resolver_with_aliases.resolve(source_file_path, import_path_str) {
56
Ok(resolution) => Ok(resolution.into_path_buf()),
57
Err(_) => Err(std::io::Error::new(
58
std::io::ErrorKind::NotFound,
0 commit comments