Skip to content

Commit 55febd4

Browse files
rchen152meta-codesync[bot]
authored andcommitted
Remove no-longer-necessary special case in TransactionHandle::get_module
Summary: I added this special case in D92129857 after observing that in tests, TypeAliasRef was unable to look up the main test module by name. D92916215 fixes this in a much better way, by adding the module path to TypeAliasRef, so we can remove the special case. Reviewed By: migeed-z Differential Revision: D93000984 fbshipit-source-id: 5f06fa3cf4fe2abdf14290f30a9968fbb9f93ae4
1 parent 046edf6 commit 55febd4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pyrefly/lib/state/state.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,12 +2128,6 @@ impl<'a> TransactionHandle<'a> {
21282128
path: Option<&ModulePath>,
21292129
dep: ModuleDep,
21302130
) -> FindingOrError<ArcId<ModuleDataMut>> {
2131-
if module == self.module_data.handle.module()
2132-
&& path.is_none_or(|path| path == self.module_data.handle.path())
2133-
{
2134-
return FindingOrError::new_finding(self.module_data.dupe());
2135-
}
2136-
21372131
let cached = {
21382132
let deps_read = self.module_data.deps.read();
21392133
if let Some(ImportResolution::Resolved(handles)) = deps_read.get(&module)

0 commit comments

Comments
 (0)