Skip to content

Commit

Permalink
Use lambdas to return reactModuleInfoMap (#39341)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39341

Use lambdas to return reactModuleInfoMap

changelog: [intenral] internal

Reviewed By: christophpurrer

Differential Revision: D49077067

fbshipit-source-id: edd2e044cb258a7bc1597ece38836fc447758694
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 14, 2023
1 parent eba05a5 commit 4b6fd81
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() {
TurboModule.class.isAssignableFrom(moduleClass)));
}

return new ReactModuleInfoProvider() {
@Override
public Map<String, ReactModuleInfo> getReactModuleInfos() {
return reactModuleInfoMap;
}
};
return () -> reactModuleInfoMap;
} catch (InstantiationException e) {
throw new RuntimeException(
"No ReactModuleInfoProvider for DebugCorePackage$$ReactModuleInfoProvider", e);
Expand Down

0 comments on commit 4b6fd81

Please sign in to comment.