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: 2be547414326928438012fd33dfa55bd68adde94
  • Loading branch information
mdvacca committed Sep 8, 2023
1 parent 2acf1fd commit 4613abc
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 4613abc

Please sign in to comment.